These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Snapshot isolation on deleting Hibernate object
PostPosted: Thu Jul 07, 2011 6:02 am 
Newbie

Joined: Thu Jul 07, 2011 5:40 am
Posts: 1
Hi,

I am getting following error when trying to delete a Hibernate Object (with one to many mappings).

2011-07-07 13:55:51,626 WARN [org.hibernate.util.JDBCExceptionReporter] (http-0.0.0.0-3390-2:) SQL Error: 3960, SQLState: S0005
2011-07-07 13:55:51,643 ERROR [org.hibernate.util.JDBCExceptionReporter] (http-0.0.0.0-3390-2:) Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'TestTableB' directly or indirectly in database 'TestDB' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.


Sceanrio is :- I have an Object of TestTableA which contains list of TestTableB ( one to many relationship). When I am trying to delete TestTableA , I am getting snapshot isolation on child object. default-cascade for testTableA is "all-delete-orphan" .

This error occurs when multiple tasks are running on server and each task is updating TestTableB (but different rows). If all or some of tasks are stopped , delete works fine.

please can some one help me ????
I am using JBoss 5 and Jdk 6. Let me know if more information is required.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.