Alfresco Community 4.0, probleme lors de la recherche

cancel
Showing results for 
Search instead for 
Did you mean: 
unknown-user
Active Member

Alfresco Community 4.0, probleme lors de la recherche

Bonjour a tous,

Après avoir installé Alfresco sur mon serveur Linux et configurer un acces via LDAP fonctionnel, j'ai uplodé quelques fichiers et ai tenté de les rechercher via l'option du même nom et la, stupeur, la recherche ne fonctionne pas a cause: 
" d'une erreur système 05150048
(le numéro change a chaque requête).

Voila la trace de l'erreur dans Alfresco.log:

14:53:00,965 ERROR [org.alfresco.web.ui.common.Utils] Echec de la recherche en raison d'une erreur système : 05150048
org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 05150048
       at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:364)
       at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:49)
       at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:348)
       at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:78)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy13.query(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
       at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy13.query(Unknown Source)
       at org.alfresco.web.bean.BrowseBean.searchBrowseNodes(BrowseBean.java:1096)
       at org.alfresco.web.bean.BrowseBean.getNodes(BrowseBean.java:529)
       at sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:459)
       at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
       at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:539)
       at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
       at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
       at org.alfresco.web.ui.common.component.data.UIRichList.getValue(UIRichList.java:151)
       at org.alfresco.web.ui.common.component.data.UIRichList.getDataModel(UIRichList.java:512)
       at org.alfresco.web.ui.common.component.data.UIRichList.bind(UIRichList.java:448)
       at org.alfresco.web.ui.common.renderer.data.RichListRenderer.encodeChildren(RichListRenderer.java:77)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:776)
       at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:663)
       at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
       at org.apache.jsp.jsp.browse.browse_jsp._jspx_meth_a_005frichList_005f0(browse_jsp.java:2822)
       at org.apache.jsp.jsp.browse.browse_jsp._jspx_meth_a_005fpanel_005f5(browse_jsp.java:2710)
       at org.apache.jsp.jsp.browse.browse_jsp._jspService(browse_jsp.java:868)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
       at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:426)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:255)
       at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:146)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.alfresco.repo.web.filter.beans.SessionSynchronizedFilter.doFilter(SessionSynchronizedFilter.java:67)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:104)
       at sun.reflect.GeneratedMethodAccessor455.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy234.doFilter(Unknown Source)
       at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68)
       at sun.reflect.GeneratedMethodAccessor455.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy234.doFilter(Unknown Source)
       at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
       at java.lang.Thread.run(Thread.java:722)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
       at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1868)
       at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
       at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
       at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)
       at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
       at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
       at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
       at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:998)
       at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1294)
       at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:685)
       at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:111)
       at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
       at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
       at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
       at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
       at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
       at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
       at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
       at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:318)
       … 106 more
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:350)
       at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:249)
       at sun.security.validator.Validator.validate(Validator.java:260)
       at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
       at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
       at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
       at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1320)
       … 123 more
Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:208)
       at java.security.cert.CertPathValidator.validate(CertPathValidator.java:279)
       at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:345)
       … 129 more

De plus, je ne sais pas si c'est lié, mais dans Catalina.out, j'ai le message d'erreur suivant qui s'affiche en boucle:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
       at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1868)
       at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
       at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
       at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)
       at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
       at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
       at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
       at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:998)
       at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1294)
       at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:685)
       at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:111)
       at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
       at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
       at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
       at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
       at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
       at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
       at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
       at org.alfresco.httpclient.AbstractHttpClient.executeMethod(AbstractHttpClient.java:110)
       at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:86)
       at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(HttpClientFactory.java:307)
       at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1007)
       at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
       at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
       at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
       at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:350)
       at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:249)
       at sun.security.validator.Validator.validate(Validator.java:260)
       at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
       at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
       at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
       at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1320)
       … 26 more
Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
       at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:208)
       at java.security.cert.CertPathValidator.validate(CertPathValidator.java:279)
       at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:345)
       … 32 more

je ne sais pas a quoi cela est du, si quelqu'un peu me mettre sur la voiz ce serait tres genereux.

Merci d'avance, cordialement,

Alexis
2 Replies
rguinot
Customer

Re: Alfresco Community 4.0, probleme lors de la recherche

Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

Probablement vous utilisez un JDK7.
Il n'est pas compatible et ne valide pas les certificats d'exemple fournis avec les keystores fournis par défaut pour la communication entre l'entrepôt et le serveur d'indexation basé sur solr.

+ieurs solutions :

- Il est de toute façon recomandé de générer vos propres clés/certificats et keystores associés afin de sécuriser cette connexion. cf http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#Generating_New_SSL_Keys
- Vous pouvez également choisir d'utiliser lucene embarqué plutôt que solr. cf lien ci-dessus également.
- downgrader a un JDK6 .
unknown-user
Active Member

Re: Alfresco Community 4.0, probleme lors de la recherche

Merci pour ces précisions.

J'essaie de générer mes propres clés en utilisant le lien fourni mais j'ai un probleme lors de l'étape 3:

(iii) Alfresco CA signs the certificate request, creating a certificate that is valid for 365 days.

$ openssl x509 -CA ca.crt -CAkey ca.key -CAcreateserial -req -in repo.csr -out repo.crt -days 365


La console affiche un no such files or directory: =bss_file.c:356:fopen('ca.crt','r') unable to load certificate