AnsweredAssumed Answered

Error changing metatdata of a document straight after upload

Question asked by amarg on Oct 26, 2010
Latest reply on Oct 26, 2010 by amarg
Hello Experts,

I would like to hear from people who have come accross the javascript error below and also understand how you resolved it (if anyone managed to):

Wrapped org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.alfresco.repo.domain.hibernate.NodeImpl] with identifier [18869]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.alfresco.repo.domain.hibernate.NodeImpl#18869]

My actions are:

1. I create a custom button in the document toolbar that calls a custom action for a single file upload which then calls a webscript when successful.
2. I try to change metadata and save the recently uploaded document within the webscript and this is where I encounter this error. I have confirmend that the error is not related to the changes I make to the document.

I suspect this has something to do with transaction management in Alfresco. Any information would be highly appreciated.