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 14:59:39 GMT

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

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

Exception trace :

org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Object Info not found
for: null
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:506)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:645)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.NavigationServiceImpl.getObjectParents(NavigationServiceImpl.java:271)
	at org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject.getPaths(AbstractFilableCmisObject.java:96)
	at tests.TestJFC.BridgeNPA(TestJFC.java:145)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)



> 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