-->
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.  [ 3 posts ] 
Author Message
 Post subject: begin failed with sql exception
PostPosted: Tue Jul 24, 2007 11:10 am 
Beginner
Beginner

Joined: Wed Mar 14, 2007 4:29 am
Posts: 33
Hello

i'm using Nhibernate and i have one problem:
When i do a rollback after an exception, it works but i can't execute queries anymore.
I have the exception "begin failed with sql exception" when i want to begin a new transaction !

Any idea ? [/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 5:02 pm 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
The full exception might help. Also, are you discarding your Session and starting from scratch? This is important, because after an exception, a given Session is considered to be at least potentially corrupted. What happens if you begin a new transaction on a new Session?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 7:07 am 
Beginner
Beginner

Joined: Wed Mar 14, 2007 4:29 am
Posts: 33
rigth, it works if i do a session = factory.OpenSession(); when catching the exception....

thanks !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.