AnsweredAssumed Answered

CmisRuntimeException when performing a CMIS query.

Question asked by danielgonzález on Jan 12, 2015
Hello.

I'm using OpenCMIS to perform queries in my Java application to search for contents stored in the alfresco repository (Alfresco Community 5.0c). All my queries were working without a problem until today, when I uploaded a OCR'ed file to Alfresco. I've tried to do a search before the indexing was complete and I faced a CmisRunTimeException. The thing is, after that, now all of a sudden all of my cmis queries result in the same exception. In Share, search is working fine like allways.

I've done a full reindex, I've restarted Alfresco, and still nothing. I've read the logs and they give me no info about this. Any idea why is this happening and how can I fix it?


<strong>One of the queries that fails:</strong>          

<blockcode>folderResults = session.query("SELECT cmis:objectId FROM cmis:folder WHERE CONTAINS('+PATH:\"/app:company_home/cm:" +  rootFolder.getName() + "//* \" cmis:name:\"" + content + "\" OR cmis:description:\"" + content + "\"') ORDER BY cmis:name", false);</blockcode>    


<strong>The exception:</strong>
<blockcode>
Estado HTTP 500 - Request processing failed; nested exception is org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 00120048 Request failed 500 /solr4/alfresco/cmis?wt=json&amp;fl=DBID%2Cscore&amp;rows=100&amp;df=TEXT&amp;start=0&amp;locale=es_ES&amp;alternativeDic=DEFAULT_DICTIONARY&amp;cmisVersion=CMIS_1_0&amp;fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&amp;fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON

type Informe de Excepción

mensaje Request processing failed; nested exception is org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 00120048 Request failed 500 /solr4/alfresco/cmis?wt=json&amp;fl=DBID%2Cscore&amp;rows=100&amp;df=TEXT&amp;start=0&amp;locale=es_ES&amp;alternativeDic=DEFAULT_DICTIONARY&amp;cmisVersion=CMIS_1_0&amp;fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&amp;fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON

descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.

excepción

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 00120048 Request failed 500 /solr4/alfresco/cmis?wt=json&amp;fl=DBID%2Cscore&amp;rows=100&amp;df=TEXT&amp;start=0&amp;locale=es_ES&amp;alternativeDic=DEFAULT_DICTIONARY&amp;cmisVersion=CMIS_1_0&amp;fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&amp;fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
   org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
   org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

causa raíz

org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 00120048 Request failed 500 /solr4/alfresco/cmis?wt=json&amp;fl=DBID%2Cscore&amp;rows=100&amp;df=TEXT&amp;start=0&amp;locale=es_ES&amp;alternativeDic=DEFAULT_DICTIONARY&amp;cmisVersion=CMIS_1_0&amp;fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&amp;fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON
   org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:487)
   org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)
   org.apache.chemistry.opencmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:145)
   org.apache.chemistry.opencmis.client.runtime.SessionImpl$3.fetchPage(SessionImpl.java:600)
   org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)
   org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getPageNumItems(AbstractIterator.java:57)
   org.apache.chemistry.opencmis.client.runtime.util.AbstractIterable.getPageNumItems(AbstractIterable.java:86)
   eu.gispert.prototipo.controller.SearchController.advancedSearch(SearchController.java:361)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)
   org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
   org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
   org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
   org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
   org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
   org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
   org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
   org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
</blockcode>

Outcomes