org.hibernate.SessionException: Session is currently disconnected

Spring JIRA | Andreas Schildbach | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [SPR-1362] HibernateTransactionManager incompatible with Hibernate 3.1? - Spring JIRA

    spring.io | 2 years ago
    org.hibernate.SessionException: Session is currently disconnected
  2. 0

    I just updated from Hibernate 3.0.5 to 3.1rc, and in an application that ran fine on 3.0.5, I now get the following exception in HibernateTransactionManager, at the end of calling my service methods: Oct 10, 2005 10:19:41 AM org.springframework.orm.hibernate3.HibernateTransactionManager doCleanupAfterCompletion INFO: Could not access JDBC Connection of Hibernate Session org.hibernate.SessionException: Session is currently disconnected at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:134) at org.hibernate.jdbc.JDBCContext.userConnection(JDBCContext.java:125) at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:366) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:550) at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:749) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:536) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:468) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:258) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) See also: http://opensource2.atlassian.com/projects/hibernate/browse/HHH-1011 http://forum.springframework.org/viewtopic.php?p=37276

    Spring JIRA | 1 decade ago | Andreas Schildbach
    org.hibernate.SessionException: Session is currently disconnected
  3. 0

    I just updated from Hibernate 3.0.5 to 3.1rc, and in an application that ran fine on 3.0.5, I now get the following exception in HibernateTransactionManager, at the end of calling my service methods: Oct 10, 2005 10:19:41 AM org.springframework.orm.hibernate3.HibernateTransactionManager doCleanupAfterCompletion INFO: Could not access JDBC Connection of Hibernate Session org.hibernate.SessionException: Session is currently disconnected at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:134) at org.hibernate.jdbc.JDBCContext.userConnection(JDBCContext.java:125) at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:366) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:550) at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:749) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:536) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:468) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:258) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) See also: http://opensource2.atlassian.com/projects/hibernate/browse/HHH-1011 http://forum.springframework.org/viewtopic.php?p=37276

    Spring JIRA | 1 decade ago | Andreas Schildbach
    org.hibernate.SessionException: Session is currently disconnected
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.SessionException

      Session is currently disconnected

      at org.hibernate.jdbc.JDBCContext.connection()
    2. Hibernate
      JDBCContext.userConnection
      1. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:134)
      2. org.hibernate.jdbc.JDBCContext.userConnection(JDBCContext.java:125)
      2 frames
    3. Hibernate
      SessionImpl.connection
      1. org.hibernate.impl.SessionImpl.connection(SessionImpl.java:366)
      1 frame
    4. Hibernate
      HibernateTransactionManager.doCleanupAfterCompletion
      1. org.springframework.orm.hibernate3.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:550)
      1 frame
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:749)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:536)
      3. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:468)
      4. org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:258)
      5. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      5 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      2 frames