chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: NPE in deleteTree AtomPub
Date Mon, 06 May 2013 14:28:49 GMT
 Hi Alexander,

 the transient objects have been deprecated with OpenCMIS 0.9.0-beta-1.
 There is probably a bug that causes the NPE, but I don't think we will 
 fix it.

 - Florian



> Hi all,
>
> I'm getting a Nullpointer if I try to delete a folder structure using 
> the
> TransientObject.
> Client Code looks like:
> TransientFolder nativeObject = getNativeObject();
> nativeObject.deleteTree(true, UnfileObject.DELETE, true);
> nativeObject.save();
>
> Don't think I'm doing something wrong here, and the delete is 
> processed
> but somehow in the OpenCMIS post processing a NPE is thrown.
>
> java.lang.NullPointerException
> at
> 
> org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl.save(TransientFolderImpl.java:200)
> at
> 
> org.alfresco.cmis.client.impl.TransientAlfrescoFolderImpl.save(TransientAlfrescoFolderImpl.java:150)
> at
> 
> com.wewebu.ow.server.ecmimpl.opencmis.object.OwCMISFolderObject.delete(OwCMISFolderObject.java:448)
>
> Test Envrionment, tomcat6 Java 6, CMIS-Backend Alfresco 4.1.4 
> Enterprise.
> Can someone verify that Bug in OpenCMIS client API?
>
> Kind Regards,
>
> Alexander


Mime
View raw message