Error when searching

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Error when searching

Jump to solution

Hi, I was wondering if someone could help me with this error please? I've search the forum and online but I haven't found a solution. 

I get this error when I try to use the search function:alfrescosearch.png

Strangely the autocomplete search still works, but when searching normally or using the advanced search function we get the error above.

I'll update the post with logs and more information soon.

 

Share log:

Spoiler
2020-10-28 16:52:40,154 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-67] Exception from executeScript: 09280041 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': missing ] after element list (file:/usr/local/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2002)
org.springframework.extensions.webscripts.WebScriptException: 09280041 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': missing ] after element list (file:/usr/local/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2002)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:217)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:251)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:311)
at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:58)
at org.springframework.extensions.surf.render.RenderService.process(RenderService.java:602)
at org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:475)
at org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:951)
at org.springframework.extensions.directives.AutoComponentRegionDirective.execute(AutoComponentRegionDirective.java:102)
at freemarker.core.Environment.visit(Environment.java:445)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101)
at freemarker.core.Environment.visit(Environment.java:366)
at freemarker.core.Environment.invokeNestedContent(Environment.java:618)
at freemarker.core.BodyInstruction.accept(BodyInstruction.java:60)
at freemarker.core.Environment.visit(Environment.java:366)
at freemarker.core.Environment.invoke(Environment.java:775)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
at freemarker.core.Environment.visit(Environment.java:330)
at freemarker.core.Environment.visit(Environment.java:336)
at freemarker.core.Environment.process(Environment.java:309)
at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:192)
at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:946)
at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:251)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:311)
at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:58)
at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:724)
at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:142)
at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:78)
at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:86)
at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:78)
at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:770)
at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:412)
at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:307)
at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:320)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:317)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1372)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:349)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:479)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:423)
at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.alfresco.web.site.servlet.AIMSFilter.doFilter(AIMSFilter.java:145)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.mozilla.javascript.EvaluatorException: missing ] after element list (file:/usr/local/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2002)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79)
at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:66)
at org.mozilla.javascript.Parser.addError(Parser.java:259)
at org.mozilla.javascript.Parser.reportError(Parser.java:327)
at org.mozilla.javascript.Parser.reportError(Parser.java:314)
at org.mozilla.javascript.Parser.reportError(Parser.java:307)
at org.mozilla.javascript.Parser.arrayLiteral(Parser.java:3305)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:3112)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:2740)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2634)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:2555)
at org.mozilla.javascript.Parser.addExpr(Parser.java:2539)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2520)
at org.mozilla.javascript.Parser.relExpr(Parser.java:2495)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:2467)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2456)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2445)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2434)
at org.mozilla.javascript.Parser.andExpr(Parser.java:2423)
at org.mozilla.javascript.Parser.orExpr(Parser.java:2412)
at org.mozilla.javascript.Parser.condExpr(Parser.java:2376)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:2332)
at org.mozilla.javascript.Parser.plainProperty(Parser.java:3704)
at org.mozilla.javascript.Parser.objectLiteral(Parser.java:3604)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:3116)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:2740)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2634)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:2555)
at org.mozilla.javascript.Parser.addExpr(Parser.java:2539)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2520)
at org.mozilla.javascript.Parser.relExpr(Parser.java:2495)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:2467)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2456)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2445)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2434)
at org.mozilla.javascript.Parser.andExpr(Parser.java:2423)
at org.mozilla.javascript.Parser.orExpr(Parser.java:2412)
at org.mozilla.javascript.Parser.condExpr(Parser.java:2376)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:2332)
at org.mozilla.javascript.Parser.plainProperty(Parser.java:3704)
at org.mozilla.javascript.Parser.objectLiteral(Parser.java:3604)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:3116)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:2740)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2634)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:2555)
at org.mozilla.javascript.Parser.addExpr(Parser.java:2539)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2520)
at org.mozilla.javascript.Parser.relExpr(Parser.java:2495)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:2467)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2456)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2445)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2434)
at org.mozilla.javascript.Parser.andExpr(Parser.java:2423)
at org.mozilla.javascript.Parser.orExpr(Parser.java:2412)
at org.mozilla.javascript.Parser.condExpr(Parser.java:2376)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:2332)
at org.mozilla.javascript.Parser.arrayLiteral(Parser.java:3307)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:3112)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:2740)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2634)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:2555)
at org.mozilla.javascript.Parser.addExpr(Parser.java:2539)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2520)
at org.mozilla.javascript.Parser.relExpr(Parser.java:2495)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:2467)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2456)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2445)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2434)
at org.mozilla.javascript.Parser.andExpr(Parser.java:2423)
at org.mozilla.javascript.Parser.orExpr(Parser.java:2412)
at org.mozilla.javascript.Parser.condExpr(Parser.java:2376)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:2332)
at org.mozilla.javascript.Parser.plainProperty(Parser.java:3704)
at org.mozilla.javascript.Parser.objectLiteral(Parser.java:3604)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:3116)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:2740)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2634)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:2555)
at org.mozilla.javascript.Parser.addExpr(Parser.java:2539)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2520)
at org.mozilla.javascript.Parser.relExpr(Parser.java:2495)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:2467)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2456)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2445)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2434)
at org.mozilla.javascript.Parser.andExpr(Parser.java:2423)
at org.mozilla.javascript.Parser.orExpr(Parser.java:2412)
at org.mozilla.javascript.Parser.condExpr(Parser.java:2376)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:2332)
at org.mozilla.javascript.Parser.expr(Parser.java:2311)
at org.mozilla.javascript.Parser.returnOrYield(Parser.java:1931)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:1227)
at org.mozilla.javascript.Parser.statement(Parser.java:1124)
at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:761)
at org.mozilla.javascript.Parser.function(Parser.java:931)
at org.mozilla.javascript.Parser.parse(Parser.java:651)
at org.mozilla.javascript.Parser.parse(Parser.java:593)
at org.mozilla.javascript.Context.parse(Context.java:2577)
at org.mozilla.javascript.Context.compileImpl(Context.java:2523)
at org.mozilla.javascript.Context.compileString(Context.java:1517)
at org.mozilla.javascript.Context.compileString(Context.java:1506)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:190)
... 91 more

 

1 Solution

Accepted Solutions
Active Member II

Re: Error when searching

Jump to solution

Sorry, as it turns out it was something that we have modified in another file. I appreciate your help.

View solution in original post

4 Replies
Moderator
Moderator

Re: Error when searching

Jump to solution

Spoiler
2020-10-28 16:52:40,154 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-67] Exception from executeScript: 09280041 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': missing ] after element list (file:/usr/local/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#2002)

Its hard to tell what exactly going on, do you find any error in alfresco.log ? Have you made any customizations to "faceted-search.get.js"? Are you able to execute the search query via Node Browser? 

Try enabling this log and monitor the alfresco.log and see if you can notice anything:

log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug

 

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
Active Member II

Re: Error when searching

Jump to solution

Thank you for replying. I can't find anything else in alfresco.log or in any other logs. We didn't make any customizations in that file. Searching works fine in the Node Browser. After enabling that log I can't see any new messages displayed in the log either.

Moderator
Moderator

Re: Error when searching

Jump to solution

I can't think what could be causing this error unless there is customization either on ui or search area. 

Look at these webscripts: https://github.com/Alfresco/share/tree/master/share-services/src/main/resources/alfresco/templates/w...

when executing search many of these webscripts print logs when enabled using the log config i shared.

I am not sure why you can't see these logs as well. 

May be someone else can pich in here.

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
Active Member II

Re: Error when searching

Jump to solution

Sorry, as it turns out it was something that we have modified in another file. I appreciate your help.

View solution in original post