org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread

Stack Overflow | jaind12 | 3 months ago
  1. 0

    Facing issue in session with the upgrade of my application to Spring 4.1.9 and Hibernate 4.3.11

    Stack Overflow | 3 months ago | jaind12
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  2. 0

    Spring Hibernate - Could not obtain transaction-synchronized Session for current thread

    Stack Overflow | 2 years ago | Alex
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  3. 0

    Spirng 4 、Hibernate 4 事务管理 | waylau.com

    waylau.com | 8 months ago
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Could not obtain transaction-synchronized Session for current thread

    Stack Overflow | 2 years ago | Ralph
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  6. 0

    Spring 4 + hibernate 4 + c3p0 : Could not obtain transaction-synchronized Session for current thread

    Stack Overflow | 2 years ago | M314
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread

    21 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.HibernateException

      Could not obtain transaction-synchronized Session for current thread

      at org.springframework.orm.hibernate4.SpringSessionContext.currentSession()
    2. Spring ORM
      SpringSessionContext.currentSession
      1. org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:134)
      1 frame
    3. Hibernate
      SessionFactoryImpl.getCurrentSession
      1. org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014)
      1 frame
    4. Spring ORM
      HibernateTemplate.findByCriteria
      1. org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:325)
      2. org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:308)
      3. org.springframework.orm.hibernate4.HibernateTemplate.findByCriteria(HibernateTemplate.java:1011)
      4. org.springframework.orm.hibernate4.HibernateTemplate.findByCriteria(HibernateTemplate.java:1003)
      4 frames