-->
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.  [ 4 posts ] 
Author Message
 Post subject: afterTransactionCompletion() warning from SessionImpl
PostPosted: Fri Jun 10, 2005 12:46 am 
Newbie

Joined: Wed Jun 08, 2005 8:42 am
Posts: 6
Hi,

We are using hibernate version 2 in our application with PostgreSQL and JBoss 3.2.7. We are managing the transactions ourselves and JBoss log is showing us many warnings of afterTransactionCompletion() never called from SessionImpl. We are committing and closing the session after each transaction if autoCommit is taken as false and closing the session when autoCommit is taken as True? Can somebody please help us out here, as to why these warnings are coming up and filling our JBoss Log indefinitely?

Thanks,
Rachna Aggarwal


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 5:07 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
You are probably getting non-HibernateException (possibly RuntimeException (NPE)) in your commit or rollback and so isCurrentTransaction is never set to false.


Top
 Profile  
 
 Post subject: afterTransactionCompletion() warning from SessionImpl
PostPosted: Fri Jun 10, 2005 5:13 am 
Newbie

Joined: Wed Jun 08, 2005 8:42 am
Posts: 6
We are not getting any exceptions and our application is running fine. Its just that we are getting this warning in our JBoss console logging indefinately.
So even when we are not getting any kind of exceptions, this warning is shown.
FYI, we are committing (if an exception occurs then rollback) and closing the session after each transaction if autoCommit is taken as false and closing the session when autoCommit is taken as True.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 5:40 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
>>when autoCommit is taken as True

A suggestion to a real production app is not to have a autoCommit=true mode at all.

For the exception ... a real mistery then to me.
We had similar problem but was caused by NPE.


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