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.
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?