CMIS Queries via DotCMIS not working anymore on V5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2015 06:49 AM
I run CMIS Query via dotCMIS 0.6
It used to work perfectly with Alfresco 4.x but it generate an exception with 5.0
I query against : http://SERVER
ORT/alfresco/api/-default-/public/cmis/versions/1.0/atom
Client side message :
Server Side message :
Is it a known issue or only I encounter it ?
It used to work perfectly with Alfresco 4.x but it generate an exception with 5.0
I query against : http://SERVER

Client side message :
2015-03-12 10:44:18.8445 ERROR at DotCMIS.Binding.AtomPub.AbstractAtomPubService.Post(UrlBuilder url, String contentType, Output writer) in DotCMIS\binding\atompub\atompub.cs:line 453 at DotCMIS.Binding.AtomPub.DiscoveryService.Query(String repositoryId, String statement, Nullable`1 searchAllVersions, Nullable`1 includeAllowableActions, Nullable`1 includeRelationships, String renditionFilter, Nullable`1 maxItems, Nullable`1 skipCount, IExtensionsData extension) in \DotCMIS\binding\atompub\atompub.cs:line 2598 at DotCMIS.Client.Impl.Session.<>c__DisplayClassb.<Query>b__a(Int64 maxNumItems, Int64 skipCount) in \DotCMIS\client\client-impl.cs:line 722 at DotCMIS.Client.Impl.PageFetcher`1.FetchNextPage(Int64 skipCount) in \DotCMIS\client\client-utils.cs:line 563 at DotCMIS.Client.Impl.AbstractEnumerator`1.GetCurrentPage() in \DotCMIS\client\client-utils.cs:line 528 at DotCMIS.Client.Impl.CollectionEnumerator`1.MoveNext() in \DotCMIS\client\client-utils.cs:line 608 at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
Server Side message :
HTTP/1.1 400 Bad RequestCache-Control: private, max-age=0Server: Apache-Chemistry-OpenCMIS/0.11.0Content-Type: text/html;charset=UTF-8Date: Thu, 12 Mar 2015 09:44:17 GMTConnection: close<html><head><title>Apache Chemistry OpenCMIS - invalidArgument error</title><style><!–H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} HR {color:#3c78b5;height:1px;}–></style></head><body><h1>HTTP Status 400 - <!–exception–>invalidArgument<!–/exception–></h1><p><!–message–>Invalid query request!<!–/message–></p><hr noshade='noshade'/><!–stacktrace–><pre>org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Invalid query request! at org.apache.chemistry.opencmis.server.impl.atompub.DiscoveryService$Query.serve(DiscoveryService.java:85) at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:91) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:226) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:173) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.alfresco.opencmis.CMISServletDispatcher.execute(CMISServletDispatcher.java:188) at org.alfresco.opencmis.CMISWebScript.execute(CMISWebScript.java:51) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:418) at org.alfresco.rest.api.PublicApiRepositoryContainer.transactionedExecute(PublicApiRepositoryContainer.java:45) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261) at org.alfresco.rest.api.PublicApiRepositoryContainer.access$001(PublicApiRepositoryContainer.java:26) at org.alfresco.rest.api.PublicApiRepositoryContainer$1.doWork(PublicApiRepositoryContainer.java:81) at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119) at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88) at org.alfresco.rest.api.PublicApiRepositoryContainer.executeScript(PublicApiRepositoryContainer.java:77) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:74) at org.alfresco.rest.api.PublicApiWebScriptServlet.service(PublicApiWebScriptServlet.java:53) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:677) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2139) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2045) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134) at org.apache.chemistry.opencmis.commons.impl.XMLUtils.findNextStartElemenet(XMLUtils.java:274) at org.apache.chemistry.opencmis.server.impl.atompub.DiscoveryService$Query.serve(DiscoveryService.java:82) … 43 more</pre><!–/stacktrace–><hr noshade='noshade'/></body></html>
Is it a known issue or only I encounter it ?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2015 07:26 AM
Hello,
what was the query? The error states that the query was deemed invalid by the OpenCMIS server implementation.
Regards
Axel
what was the query? The error states that the query was deemed invalid by the OpenCMIS server implementation.
Regards
Axel

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2015 07:41 AM
Hi
The query is "SELECT * FROM cmis:folder as A WHERE IN_FOLDER(A,'workspace://SpacesStore/670ae6e9-57d2-495a-b713-5d30ac7e231b') AND A.cmis:name = 'documentLibrary'"
It does work with CMISWorkbench though but not DotCMIS.
The guys at Apache told me it was not on their side …
Same query worked perfectly on Alfresco v4
The query is "SELECT * FROM cmis:folder as A WHERE IN_FOLDER(A,'workspace://SpacesStore/670ae6e9-57d2-495a-b713-5d30ac7e231b') AND A.cmis:name = 'documentLibrary'"
It does work with CMISWorkbench though but not DotCMIS.
The guys at Apache told me it was not on their side …
Same query worked perfectly on Alfresco v4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2015 05:37 AM
Did some more digging :
With DotCMIS :
Simple queries like 'SELECT * FROM cmis:Folder' work on Alf4 and 5
More complex queries, like the one above, work on Alf4 but not Alf5
With CMISWorkbench
Both queries work on Alf5
I guess there is something in the communication between DotCMIS and Alfresco 5 going wrong for complex queries
Every other combination of tools / Alf version seems to work
With DotCMIS :
Simple queries like 'SELECT * FROM cmis:Folder' work on Alf4 and 5
More complex queries, like the one above, work on Alf4 but not Alf5
With CMISWorkbench
Both queries work on Alf5
I guess there is something in the communication between DotCMIS and Alfresco 5 going wrong for complex queries
Every other combination of tools / Alf version seems to work

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2015 06:54 AM
There may be an issue with our Alfresco Instance.
I'll make some more checks.
I'll make some more checks.
