Hi,
We're developping an application that interact with Documentum CS 6.7 through the CMIS interface. We were able to do a lot of things but we got stuck with a strange error returned by the Documentum server. It is possible to search for documents through the CMIS interface receiving the desired documents, but if you open da, check out one of the returned documents and redo the exact search call to the CMIS Interface , then an exception is returned (see stack trace below). If go back to da and cancel the checkout... everythings get back to normal.
This is quite annoying.
Does anybody nows if this is a configuration problem, if this a bug and how can I get rid of this exception !??
Any help will be appreciate.
Thanks
Jeff
-------------------------------------------------
Sniffed packed from the problematic call.
Call:
POST /emc-cmis/resources/repositories/Documentum/queries HTTP/1.1
User-Agent: Apache Chemistry OpenCMIS
Content-Type: application/cmisquery+xml
Authorization: Basic QU1BREVVU1xzeW1waG9uaWU6dGVtcA==
Host: vmdocumentum:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Transfer-Encoding: chunked
2e1
0
Answer:
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 4539
Date: Thu, 04 Aug 2011 20:16:26 GMT
Connection: close
<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
.com.emc.documentum.fs.cmis.impl.dfs.utils.PermissionsUtils.getAuthenticatedUserName(PermissionsUtils.java:72)
.com.emc.documentum.fs.cmis.impl.dfs.utils.PermissionsUtils.computeDocumentPermissions(PermissionsUtils.java:266)
.com.emc.documentum.fs.cmis.impl.dfs.utils.PermissionsUtils.getAllowableActions(PermissionsUtils.java:179)
.com.emc.documentum.fs.cmis.impl.dfs.converter.QueryResultConverter.getAllowableActions(QueryResultConverter.java:347)
.com.emc.documentum.fs.cmis.impl.dfs.converter.QueryResultConverter.getExtraInformation(QueryResultConverter.java:324)
.com.emc.documentum.fs.cmis.impl.dfs.converter.QueryResultConverter.toCmisObject(QueryResultConverter.java:120)
.com.emc.documentum.fs.cmis.impl.dfs.converter.QueryResultConverter.toCmisObjectTypeList(QueryResultConverter.java:107)
.com.emc.documentum.fs.cmis.impl.dfs.action.QueryAction.convertQueryResult(QueryAction.java:143)
.com.emc.documentum.fs.cmis.impl.dfs.action.QueryAction.execute(QueryAction.java:72)
.com.emc.documentum.fs.cmis.impl.dfs.action.QueryAction.execute(QueryAction.java:48)
.com.emc.documentum.fs.cmis.impl.dfs.action.AuthenticatedRepositoryAction.execute(AuthenticatedRepositoryAction.java:48)
.com.emc.documentum.fs.cmis.rs.impl.resource.QueryResource.query(QueryResource.java:93)
.com.emc.documentum.fs.cmis.rs.impl.resource.QueryResource.query(QueryResource.java:86)
.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)
.com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:172)
.com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
.com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:265)
.com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:118)
.com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
.com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:118)
.com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
.com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)
.com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
.com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)
.com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:996)
.com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:947)
.com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:938)
.com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:399)
.com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:478)
.com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:663)
.javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
.com.emc.documentum.fs.cmis.rs.impl.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:104)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>