org.springframework.orm.hibernate5.HibernateSystemException: getNamedQuery is not valid without active transaction; nested exception is org.hibernate.HibernateException: getNamedQuery is not valid without active transaction

GitHub | vwilliam | 3 months ago
  1. 0

    GitHub comment 103#241782908

    GitHub | 3 months ago | vwilliam
    org.springframework.orm.hibernate5.HibernateSystemException: getNamedQuery is not valid without active transaction; nested exception is org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
  2. 0

    Dropwizard-Hibernate Transaction handling for Integration Tests

    Stack Overflow | 10 months ago | Zeatha
    org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
  3. 0

    Hibernate 5 Transaction not started by Spring 4

    Stack Overflow | 1 year ago | Jose Ospina
    org.hibernate.HibernateException: get is not valid without active transaction
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Hibernate integration throws getFlushMode is not valid without active transaction

    Stack Overflow | 2 years ago | user3181365
    org.springframework.orm.hibernate4.HibernateSystemException: getFlushMode is not valid without active transaction; nested exception is org.hibernate.HibernateException: getFlushMode is not valid without active transaction
  6. 0

    Why findAll() method return null result?

    Stack Overflow | 11 months ago | Khai Tran
    org.hibernate.HibernateException: createCriteria is not valid without active transaction

    2 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

      getNamedQuery is not valid without active transaction

      at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke()
    2. Hibernate
      ThreadLocalSessionContext$TransactionProtectionWrapper.invoke
      1. org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:334)
      1 frame
    3. com.sun.proxy
      $Proxy103.getNamedQuery
      1. com.sun.proxy.$Proxy103.getNamedQuery(Unknown Source)
      1 frame
    4. org.friends.app
      UserSessionDaoImpl$$FastClassBySpringCGLIB$$868a5ea9.invoke
      1. org.friends.app.dao.impl.UserSessionDaoImpl.findByCookie(UserSessionDaoImpl.java:43)
      2. org.friends.app.dao.impl.UserSessionDaoImpl$$FastClassBySpringCGLIB$$868a5ea9.invoke(<generated>)
      2 frames
    5. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      2 frames
    7. Spring Tx
      PersistenceExceptionTranslationInterceptor.invoke
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    9. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    10. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
      2 frames
    11. org.friends.app
      UserServiceBean.findUserByCookie
      1. org.friends.app.dao.impl.UserSessionDaoImpl$$EnhancerBySpringCGLIB$$db73cfde.findByCookie(<generated>)
      2. org.friends.app.service.impl.UserServiceBean.findUserByCookie(UserServiceBean.java:87)
      2 frames
    12. 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:498)
      4 frames
    13. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    14. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    15. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      2 frames
    16. com.sun.proxy
      $Proxy102.findUserByCookie
      1. com.sun.proxy.$Proxy102.findUserByCookie(Unknown Source)
      1 frame
    17. org.friends.app
      AuthenticatedRoute.handle
      1. org.friends.app.view.route.AuthenticatedRoute.checkAuthenticated(AuthenticatedRoute.java:44)
      2. org.friends.app.view.route.AuthenticatedRoute.handle(AuthenticatedRoute.java:25)
      2 frames
    18. Spark
      SparkFilter.doFilter
      1. spark.TemplateViewRouteImpl$1.handle(TemplateViewRouteImpl.java:66)
      2. spark.webserver.MatcherFilter.doFilter(MatcherFilter.java:162)
      3. spark.servlet.SparkFilter.doFilter(SparkFilter.java:122)
      3 frames
    19. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
      10 frames
    20. org.apache.coyote
      AbstractAjpProcessor.process
      1. org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:827)
      1 frame
    21. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
      2. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
      3 frames
    22. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    23. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    24. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame