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

Stack Overflow | p01ntbl4nk | 3 months ago
  1. 0

    Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread

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

    Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread

    codegur.com | 1 month ago
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    waylau.com | 8 months ago
    org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
  6. 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

    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.get
      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.get(HibernateTemplate.java:418)
      4. org.springframework.orm.hibernate4.HibernateTemplate.get(HibernateTemplate.java:411)
      4 frames
    5. sg.com.diamond
      ClientController.home
      1. sg.com.diamond.express.base.dao.impl.BaseHibernateDaoImpl.findById(BaseHibernateDaoImpl.java:160)
      2. sg.com.diamond.express.webadmin.service.impl.ClientProfileServiceImpl.searchByName(ClientProfileServiceImpl.java:48)
      3. sg.com.diamond.express.webadmin.controller.impl.ClientController.home(ClientController.java:48)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:472)
      2. org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:409)
      3. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:146)
      4. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
      8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
      8 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      1 frame
    9. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame