org.hibernate.SessionException: Session is closed
843859Jul 10 2009 — edited Nov 20 2014Hi all,
i am using Hibernate in my application. It is not a web application.
when i call the rollback transaction method i am getting the following error.
Fail to rollback transaction
org.hibernate.SessionException: Session is closed
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:116)
at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:183)
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:162)
Not sure why the session is closing. Any idea why the session is closed?
thanks in advance,
Vali Shaik