chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.-M. Kubek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-969) OpenCmis Bridge : NPA with child.getPaths()
Date Sat, 06 Feb 2016 15:00:44 GMT

    [ https://issues.apache.org/jira/browse/CMIS-969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135803#comment-15135803
] 

J.-M. Kubek commented on CMIS-969:
----------------------------------

Exception trace on bridge :

[qtp275002771-12] ERROR org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet
- Object Info not found for: null
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Object Info not found
for: null
	at org.apache.chemistry.opencmis.server.impl.atompub.AbstractAtomPubServiceCall.writeObjectEntry(AbstractAtomPubServiceCall.java:161)
	at org.apache.chemistry.opencmis.server.impl.atompub.NavigationService$GetObjectParents.serve(NavigationService.java:523)
	at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:92)
	at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:244)
	at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:193)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:835)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.eclipse.jetty.server.Server.handle(Server.java:517)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
	at java.lang.Thread.run(Thread.java:745)
[qtp275002771-12] ERROR org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet
- STREAM
java.lang.IllegalStateException: STREAM
	at org.eclipse.jetty.server.Response.getWriter(Response.java:888)
	at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.printError(CmisAtomPubServlet.java:336)
	at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:206)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:835)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.eclipse.jetty.server.Server.handle(Server.java:517)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
	at java.lang.Thread.run(Thread.java:745)




> OpenCmis Bridge :  NPA with child.getPaths()
> --------------------------------------------
>
>                 Key: CMIS-969
>                 URL: https://issues.apache.org/jira/browse/CMIS-969
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-bridge
>    Affects Versions: OpenCMIS 0.13.0
>         Environment: Client 0.13.0  / bridge 0.13.0
>            Reporter: J.-M. Kubek
>            Priority: Minor
>
> Hi,
> The following code raises an NPA when using opencmls bridge  with atompub binding. The
bridge is using  the stock SimpleForwardingCmisService.
> There is no problem when connecting directly to the target cmis service (nuxeo 7.10).
> public void BridgeNPA () {
> 		
> 		Folder rootFolder = directCmisSession.getRootFolder();
> 		Folder subFolder = FileUtils.createFolder(rootFolder, "TestNPA", "cmis:folder");
> 		FileUtils.createTextDocument(subFolder.getId(), "test.txt", "dummy content", "cmis:document",
VersioningState.MAJOR, directCmisSession);
> 		cmisSession.clear();
> 		
> 		OperationContext opContext =  OperationContextUtils.createMaximumOperationContext();
> 		ItemIterable<CmisObject> childrenWithOpContext = subFolder.getChildren(opContext);
> 		for (CmisObject child: childrenWithOpContext) {
> 			if (child instanceof Document){
> 				((Document) child).getPaths();
> 			}
> 		}
> 		/* The same without opContext
> 		ItemIterable<CmisObject> children = subFolder.getChildren();
> 		
> 		for (CmisObject child: children) {
> 			if (child instanceof Document){
> 				((Document) child).getPaths();
> 			}
> 		}
> 		*/
> 	}



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

Mime
View raw message