View Single Post
  #1 (permalink)  
Old 04-19-2007, 06:33 PM
orchid's Avatar
orchid orchid is offline
Member
 
Join Date: Apr 2007
Location: Midwest
Posts: 60
orchid is on a distinguished road
Hibernate issue with transaction
Am getting a message in my log file sometimes that says:
12:43:34,400 WARN [SessionImpl] afterTransactionCompletion() was never called
The app is running fine but this does not look like a good message. I have a finally block after all my try/catch blocks where I open sessions. I close the session in them.
Code:
try { session = DBUtil.getSession(); tx = session.beginTransaction(); //some code here session.save(mydomainobject); tx.commit(); } catch (Exception e) { rollback(t); } finally { closeSession(session); }
So I am not sure why I am still getting seeing this warning in the log.
Has anyone else had this and successfully fixed it?
Reply With Quote
Sponsored Links