We sometimes have getNode() errors or it returns null for newly documents created in same thread. Custom web service code written in Eclipse Java running on Tomcat7 and les-services on Tomcat. Content Server 10.0 SP2. We have a SOAP call to add the document using web services we get a Object ID and can navigate and open the document. The errors occur when another docman.createNode or docMan.moveNode operation is started. It looks like one thread locks something and second thread can never issue a successful getNode, even if we retry every 500 ms for 100 loops.
Our custom java code 1) adds the pdf with metadata 2) object id is returned 3) 100 milliseconds later we issue getNode() which 5% of the time returns null object or throws error.
Part 1:
ContentService contServPort = getContentService();
DataHandler uploadContents = new DataHandler(new FileDataSource(uploadFile));
Holder<OTAuthentication> authenticationHolder = new Holder<OTAuthentication>(authentication);
String uploadContent = contServPort.uploadContent(uploadContents, authenticationHolder, contextId, fileAtts)
// successfully returns doc id
// next step right away is to issue getNode to get the mimetype and version info
//If getNode fails it never recovers in same transaction.
DocumentManagement docManPort = getDocManService();
Holder<OTAuthentication> otAuthentication = new Holder<OTAuthentication>(authentication);
node = docManPort.getNode(docId, otAuthentication);
// resubmission seens to always work, which is resubmit SOAP Message again and code called is same (different function)
Any help would be greatly appreciated.
This did not work for us:
https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=60983295&objAction=viewincontainer&ShowReplyEntry=60989860#forum_topic_60989860