AnsweredAssumed Answered

Uploading multiple files - randomly throws 'Node does not exist' exception

Question asked by eu_81 on Jun 25, 2013
Latest reply on Jun 25, 2013 by deko

I have an issue with uploading multiple files using Alfresco Share 3.4.9 (enterprise), regarding the inexistence of the node which its content I'm uploading.
The contents of the uploaded files are stored in a "customized" content store (extends org.alfresco.repo.content.AbstractContentStore). The "customized" content store is in fact an interface to a WORM (Write-Once-Read-Many) Storage System and it use the HTTP/S to communicate with it.

The problem appears randomly, only when I'm uploading a large number of files (about ~457 files - each having ~3 MB size). The location where the error occurs is on the "content stream closing" method, after the content has been uploaded (implementation of org.alfresco.service.cmr.repository.ContentStreamListener.contentStreamClosed). In this method, I have to do some extra operations to the newly uploaded content to the "WORM" storage, such as: adding some custom-metadata, set content retention etc. The data are retrieved from the node properties.
The odd thing is, even though the Share tells me that the document has failed to upload, the content and its "WORM" metadata are set OK and I can access it from Share/Explore without any problem - I believe there is a retrying sequence in case of errors … (I noticed in the log file that the "content stream closing" method is called twice ..).

So, what can be the reason of this behavior? I couldn't find an explicit issue on Alfresco JIRA for this case.

The complete scenario of uploading files is bellow:
1. Create a space having associated a content rule that executes a web script.
The web scripts set some metadata to a custom aspect of ours and attaches it to the current document (node). The custom aspect triggers further the attachment of the "cm:storeSelector" aspect having a specific store name set …
2. Start upload the multiple files to the above space …

Attached are the alfresco log file and the web script.

Environment: Alfresco Enterprise 3.4.9, Tomcat 6.0.35, Postgresql, Windows 7 Enterprise; Browsers: Firefox, Chrome, IE8.

Best regards,