chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-899) CMIS Query Error with Alf5
Date Thu, 12 Mar 2015 09:52:38 GMT
Karam created CMIS-899:
--------------------------

             Summary: CMIS Query Error with Alf5
                 Key: CMIS-899
                 URL: https://issues.apache.org/jira/browse/CMIS-899
             Project: Chemistry
          Issue Type: Bug
          Components: dotcmis
    Affects Versions: DotCMIS 0.6
         Environment: Client : Windows 7 x64
Server : Apache with Alfresco 5.0
            Reporter: Karam
            Priority: Blocker


I run CMIS Query via dotCMIS.
It used to work perfectly with Alfresco 4.x but it generate an exception with 5.0

I query against : http://SERVER:PORT/alfresco/api/-default-/public/cmis/versions/1.0/atom

Client side message : 
{code}
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)
{code}


Server Side message : 
{code}
HTTP/1.1 400 Bad Request
Cache-Control: private, max-age=0
Server: Apache-Chemistry-OpenCMIS/0.11.0
Content-Type: text/html;charset=UTF-8
Date: Thu, 12 Mar 2015 09:44:17 GMT
Connection: 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>
{code}

Is it a known issue or only I encounter it ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message