ConcurrencyFailureException: Failed to update node
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2014 04:25 AM
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!
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!
Labels:
- Labels:
-
Archive
21 REPLIES 21
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2014 05:26 PM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2014 03:42 AM
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.