Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

org.hibernate.SessionException: Session is closed

843859Jul 10 2009 — edited Nov 20 2014
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2009
Added on Jul 10 2009
3 comments
530 views