Alfresco 社区 6 搜索 (Solr) 无法正常工作

Alfresco community 6 search (Solr) does not work properly

我使用其 docker-compose 文件部署了 Alfresco 社区 6(及其所有要求,例如搜索...)。但搜索无法正常工作。有时它有效,有时它仅适用于使用 alfresco web UI(共享)上传的文件,而不适用于通过 Alfresco Rest API 上传的文件!有时似乎完全禁用了搜索功能(目前它甚至没有像上次修改那样在共享中显示一些 dashlets 内容,它显示加载项目时出错)。

我刚刚部署了 Alfresco 及其 docker-compose 文件,没有任何修改。

这是内容服务和 Solr 的一些日志。

solr6_1                  | 2020-05-04 05:55:12.361 ERROR (qtp915349526-17) [   x:alfresco] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException
solr6_1                  |  at org.alfresco.solr.query.Solr4QueryParser.getContentStore(Solr4QueryParser.java:195)
solr6_1                  |  at org.alfresco.solr.query.Solr4QueryParser.<init>(Solr4QueryParser.java:168)
solr6_1                  |  at org.alfresco.solr.AlfrescoSolrDataModel.getLuceneQueryParser(AlfrescoSolrDataModel.java:1414)
solr6_1                  |  at org.alfresco.solr.query.AlfrescoLuceneQParserPlugin$AlfrescoLuceneQParser.parse(AlfrescoLuceneQParserPlugin.java:85)
solr6_1                  |  at org.apache.solr.search.QParser.getQuery(QParser.java:168)
solr6_1                  |  at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:161)
solr6_1                  |  at org.apache.solr.handler.component.AlfrescoSearchHandler.handleRequestBody(AlfrescoSearchHandler.java:323)
solr6_1                  |  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
solr6_1                  |  at org.apache.solr.core.SolrCore.execute(SolrCore.java:2477)
solr6_1                  |  at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723)
solr6_1                  |  at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:529)
solr6_1                  |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:361)
solr6_1                  |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:305)
solr6_1                  |  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
solr6_1                  |  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
solr6_1                  |  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
solr6_1                  |  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
solr6_1                  |  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
solr6_1                  |  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
solr6_1                  |  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
solr6_1                  |  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
solr6_1                  |  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
solr6_1                  |  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
solr6_1                  |  at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
solr6_1                  |  at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
solr6_1                  |  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
solr6_1                  |  at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
solr6_1                  |  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
solr6_1                  |  at org.eclipse.jetty.server.Server.handle(Server.java:534)
solr6_1                  |  at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
solr6_1                  |  at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
solr6_1                  |  at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
solr6_1                  |  at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
solr6_1                  |  at org.eclipse.jetty.io.SelectChannelEndPoint.run(SelectChannelEndPoint.java:93)
solr6_1                  |  at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
solr6_1                  |  at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
solr6_1                  |  at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
solr6_1                  |  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
solr6_1                  |  at org.eclipse.jetty.util.thread.QueuedThreadPool.run(QueuedThreadPool.java:589)
solr6_1                  |  at java.base/java.lang.Thread.run(Thread.java:834)
solr6_1                  | 
alfresco_1               | 2020-05-04 05:55:12,364  ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-1] Exception from executeScript: 04040012 Wrapped Exception (with status template): 04040113 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 04040112 Failed to execute search: PATH:"/app:company_home//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable" -ASPECT:"{http://www.alfresco.org/model/content/1.0}workingcopy"
alfresco_1               | org.springframework.extensions.webscripts.WebScriptException: 04040012 Wrapped Exception (with status template): 04040113 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 04040112 Failed to execute search: PATH:"/app:company_home//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable" -ASPECT:"{http://www.alfresco.org/model/content/1.0}workingcopy"
alfresco_1               |  at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1139)
alfresco_1               |  at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryContainer.execute(RepositoryContainer.java:519)
alfresco_1               |  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:595)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:664)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:435)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:315)
alfresco_1               |  at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
alfresco_1               |  at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
alfresco_1               |  at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
alfresco_1               |  at org.alfresco.repo.web.scripts.AlfrescoWebScriptServlet.service(AlfrescoWebScriptServlet.java:43)
alfresco_1               |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor442.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:282)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:279)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:225)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.access[=10=]0(ApplicationFilterChain.java:47)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:149)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:145)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alfresco_1               |  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:282)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:279)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.access[=10=]0(ApplicationFilterChain.java:47)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:149)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:145)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alfresco_1               |  at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:282)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:279)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.access[=10=]0(ApplicationFilterChain.java:47)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:149)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:145)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alfresco_1               |  at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:282)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:279)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.access[=10=]0(ApplicationFilterChain.java:47)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:149)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:145)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alfresco_1               |  at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:282)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.run(SecurityUtil.java:279)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alfresco_1               |  at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.access[=10=]0(ApplicationFilterChain.java:47)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:149)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.run(ApplicationFilterChain.java:145)
alfresco_1               |  at java.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1               |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alfresco_1               |  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
alfresco_1               |  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
alfresco_1               |  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
alfresco_1               |  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
alfresco_1               |  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
alfresco_1               |  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
alfresco_1               |  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
alfresco_1               |  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
alfresco_1               |  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
alfresco_1               |  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
alfresco_1               |  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
alfresco_1               |  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
alfresco_1               |  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
alfresco_1               |  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
alfresco_1               |  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
alfresco_1               |  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
alfresco_1               |  at java.base/java.lang.Thread.run(Thread.java:834)
alfresco_1               | Caused by: org.alfresco.scripts.ScriptException: 04040113 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 04040112 Failed to execute search: PATH:"/app:company_home//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable" -ASPECT:"{http://www.alfresco.org/model/content/1.0}workingcopy"
alfresco_1               |  at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:211)
alfresco_1               |  at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)
alfresco_1               |  at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)
alfresco_1               |  at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)
alfresco_1               |  at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
alfresco_1               |  at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
alfresco_1               |  ... 107 more
alfresco_1               | Caused by: org.alfresco.error.AlfrescoRuntimeException: 04040112 Failed to execute search: PATH:"/app:company_home//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable" -ASPECT:"{http://www.alfresco.org/model/content/1.0}workingcopy"
alfresco_1               |  at org.alfresco.repo.jscript.Search.queryResultMeta(Search.java:1127)
alfresco_1               |  at org.alfresco.repo.jscript.Search.query(Search.java:986)
alfresco_1               |  at org.alfresco.repo.jscript.Search.query(Search.java:970)
alfresco_1               |  at org.alfresco.repo.jscript.Search.query(Search.java:929)
alfresco_1               |  at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:353)
alfresco_1               |  at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:338)
alfresco_1               |  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
alfresco_1               |  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
alfresco_1               |  at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
alfresco_1               |  at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:45)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8._c_tagQuery_1(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:86)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
alfresco_1               |  at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:87)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:170)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
alfresco_1               |  at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:409)
alfresco_1               |  at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3566)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
alfresco_1               |  at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_8.exec(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
alfresco_1               |  at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)
alfresco_1               |  at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)
alfresco_1               |  ... 112 more
alfresco_1               | Caused by: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 04040111 Request failed 500 /solr/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=1000&df=TEXT&start=0&locale=af&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON
alfresco_1               |  at org.alfresco.repo.search.impl.solr.AbstractSolrQueryHTTPClient.postQuery(AbstractSolrQueryHTTPClient.java:108)
alfresco_1               |  at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.postSolrQuery(SolrQueryHTTPClient.java:1115)
alfresco_1               |  at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:582)
alfresco_1               |  at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:52)
alfresco_1               |  at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:354)
alfresco_1               |  at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:84)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.alfresco.repo.management.subsystems.SubsystemProxyFactory.invoke(SubsystemProxyFactory.java:79)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco_1               |  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
alfresco_1               |  at com.sun.proxy.$Proxy34.query(Unknown Source)
alfresco_1               |  at org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.query(SearchServiceSubSystemDelegator.java:133)
alfresco_1               |  at jdk.internal.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)
alfresco_1               |  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1               |  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1               |  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
alfresco_1               |  at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco_1               |  at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco_1               |  at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco_1               |  at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
alfresco_1               |  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
alfresco_1               |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
alfresco_1               |  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
alfresco_1               |  at com.sun.proxy.$Proxy34.query(Unknown Source)
alfresco_1               |  at org.alfresco.repo.jscript.Search.queryResultMeta(Search.java:1016)
alfresco_1               |  ... 135 more

问题已解决。这是一个愚蠢的问题。 alfresco 的搜索功能 取决于语言环境 !我用于搜索的浏览器语言环境设置为与 java 代码上传的文件不同的语言环境。