AnsweredAssumed Answered

java error during document library navigation

Question asked by riccardopulcini on Feb 18, 2015
Hi,

during the navigation of the document library in share we got the following:

Date:    1970-01-01 14:52:32.663
Class:   ?
Method:  ?
Level:     ERROR
Thread: org.springframework.extensions.webscripts.AbstractRuntime
File: ?:?
Logger name: Unknown
Message: Exception from executeScript - redirecting to status template error: 01180002 Wrapped Exception (with status template): 01180033 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 01180032 Failed to execute search: PATH:"/app:company_home/st:sites/cm:sisal/cm:documentLibrary//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
org.springframework.extensions.webscripts.WebScriptException: 01180002 Wrapped Exception (with status template): 01180033 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 01180032 Failed to execute search: PATH:"/app:company_home/st:sites/cm:sisal/cm:documentLibrary//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:563)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:343)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2378)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
Caused by: org.alfresco.scripts.ScriptException: 01180033 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js': 01180032 Failed to execute search: PATH:"/app:company_home/st:sites/cm:sisal/cm:documentLibrary//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:204)
   at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
… 31 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 01180032 Failed to execute search: PATH:"/app:company_home/st:sites/cm:sisal/cm:documentLibrary//*" AND ASPECT:"{http://www.alfresco.org/model/content/1.0}taggable"
   at org.alfresco.repo.jscript.Search.query(Search.java:827)
   at org.alfresco.repo.jscript.Search.query(Search.java:782)
   at org.alfresco.repo.jscript.Search.query(Search.java:741)
   at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:329)
   at org.alfresco.repo.jscript.Search.luceneSearch(Search.java:314)
   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:606)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c16._c1(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:51)
   at org.mozilla.javascript.gen.c16.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c16._c0(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js:184)
   at org.mozilla.javascript.gen.c16.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c16.call(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.mozilla.javascript.gen.c16.exec(classpath*:alfresco/templates/webscripts/org/alfresco/collaboration/tagQuery.get.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
… 36 more
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:835)
   at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:453)
   at java.util.ComparableTimSort.mergeCollapse(ComparableTimSort.java:376)
   at java.util.ComparableTimSort.sort(ComparableTimSort.java:182)
   at java.util.ComparableTimSort.sort(ComparableTimSort.java:146)
   at java.util.Arrays.sort(Arrays.java:472)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.manageCache(ReferenceCountingReadOnlyIndexReaderFactory.java:418)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.document(ReferenceCountingReadOnlyIndexReaderFactory.java:445)
   at org.apache.lucene.index.MultiReader.document(MultiReader.java:216)
   at org.apache.lucene.index.FilterIndexReader.document(FilterIndexReader.java:147)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.access$001(ReferenceCountingReadOnlyIndexReaderFactory.java:93)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader$ListFieldAccessor.get(ReferenceCountingReadOnlyIndexReaderFactory.java:333)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader$ListFieldAccessor.get(ReferenceCountingReadOnlyIndexReaderFactory.java:328)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.manageCache(ReferenceCountingReadOnlyIndexReaderFactory.java:401)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.document(ReferenceCountingReadOnlyIndexReaderFactory.java:445)
   at org.apache.lucene.index.MultiReader.document(MultiReader.java:216)
   at org.apache.lucene.index.FilterIndexReader.document(FilterIndexReader.java:147)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.access$001(ReferenceCountingReadOnlyIndexReaderFactory.java:93)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader$ListFieldAccessor.get(ReferenceCountingReadOnlyIndexReaderFactory.java:333)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader$ListFieldAccessor.get(ReferenceCountingReadOnlyIndexReaderFactory.java:328)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.manageCache(ReferenceCountingReadOnlyIndexReaderFactory.java:401)
   at org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader.document(ReferenceCountingReadOnlyIndexReaderFactory.java:445)
   at org.apache.lucene.index.MultiReader.document(MultiReader.java:216)
   at

…(+7.154 chars)
Marked: false


But we don't understand it "Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!", looking on google we found a compatibility problem with java 7, but it seems very strange

Any suggestions?

Thanks!
Regards
Riccardo

Outcomes