-->
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.  [ 2 posts ] 
Author Message
 Post subject: mssql2000 error: 1205 appearing randomly
PostPosted: Sat Aug 06, 2005 11:47 pm 
Newbie

Joined: Sat Aug 06, 2005 11:31 pm
Posts: 1
hi,

don't know if this is hibernate specific but I randomly receive the error mentioned in the subject and don't know whicht strategy I should use to solve this problem.

when I invoke my hibernated webapp an error like this appears:

"Your transaction (process ID #%d) was deadlocked with another process
and has been chosen as the deadlock victim. Rerun your transaction."

its said to solve the problem like this:

"Your application should intercept the error 1205 and respond by resubmitting the transaction."

I tried the jtds and the jsqlconnect drivers but both do not intercept this error and handle a retry on their own.

does anyone know about this problem and how to solve it without intercepting and retrying?

catching this specific exception and retrying for each database access would be a pain in the ass...

thanks!

muffin


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 1:00 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
You must resubmit transaction yourself, it can break concurrency contol in some cases (application specific) and databases can not recovery from this error for this reason. There are a few workarounds to avoid deadlock, but it depends on database configuration , isolation level, database design and code. So probably nobody can help you to solve this problem on forum, we can just recommend to use "transaction processing guidnes", try to debug it using system tables.


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

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.