cancel
Showing results for 
Search instead for 
Did you mean: 

ConcurrencyFailureException: Failed to update node

spilby
Confirmed Champ
Confirmed Champ
I'm using Alfresco Enterprise v4.1.6

I create a new node and then modify some properties of the parents doing a getNodeService().addProperties.

Sometimes, this addProperties fails and give me a org.springframework.dao.ConcurrencyFailureException: Failed to update node 288941

And when it occurs, I can't see the node that I create and can't doing anything on this node. Only works again if I restart Alfresco tomcat server.

I supose that this ocurrs because various users create nodes with same parents and modify the properties at a same time.  

What can I do to solve this? How do you modify properties or nodes for avoid this exception?

Thank you!
21 REPLIES 21

mrogers
Star Contributor
Star Contributor
There's Clearly  something strange going on and you have a transaction deadlock.   You may be able to get more info from your database admin tool.   

But if you do want to take control of your transaction then use the RetryingTransactionHelper which ensures that transactions are retried and closed correctly in all situations.

spilby
Confirmed Champ
Confirmed Champ
Yeah, is really strange. And this deadlock only occurs when I delete a node from the alfresco explorer. I will read about the RetryingTransactionHelper, thanks, I don't know how can I use it.