AnsweredAssumed Answered

Document not available after its creation

Question asked by mkl on Apr 12, 2011
Hi!

I'm using openCmis / Apache Chemistry 0.3.0 to create numerous document objects in an Alfresco 3.4d installation. Every once in a while it happens that just after creating a document via CMIS a CMIS call to retrieve the properties of that document fails even though it uses the object id returned by the CMIS document creation command.

OpenCmis, on the other hand, assumes that the properties of an object id returned by a CMIS document creation command can immediately be retrieved, at least its high-level methods assume this.

Thus, every once in a while a

cmisSession.createDocument(properties, folder, elementContentStream, null, policies, addAces, removeAces)

call fails with an exception concerning a faulty return.

On the Alfresco side I see this exception:

2011-04-04 14:12:06.559 [http-80-6] ERROR | AbstractRuntime | Exception from executeScript - redirecting to status template error: 03040003 Unable to find object workspace://SpacesStore/9755be41-4c4f-4c68-9c79-8126f59dba5c
org.springframework.extensions.webscripts.WebScriptException: 03040003 Unable to find object workspace://SpacesStore/9755be41-4c4f-4c68-9c79-8126f59dba5c
        at org.alfresco.repo.cmis.reference.ObjectIdReference.getNodeRef(ObjectIdReference.java:63)
        at org.alfresco.repo.cmis.rest.CMISScript.getNode(CMISScript.java:358)
        at sun.reflect.GeneratedMethodAccessor598.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
        at org.mozilla.javascript.gen.c20._c1(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js:14)
        at org.mozilla.javascript.gen.c20.call(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c20._c0(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js:65)
        at org.mozilla.javascript.gen.c20.call(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c20.call(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)
        at org.mozilla.javascript.gen.c20.exec(file:/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)

The document actually is there to be seen, though, as manual checks proof.

Has anyone else had this problem? And maybe solved it?

Regards,   Michael.

Outcomes