org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection

GitHub | lanhongjie | 10 months 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

    注册时报错,数据库一切正常

    GitHub | 1 month ago | abellee
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
  2. 0

    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction

    Stack Overflow | 2 months ago | roshani khatun
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
  3. 0

    Page is not saved Intermittently and Content Loss Due to Database Scheduled Maintenance Plan - Atlassian Documentation

    atlassian.com | 5 months ago
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to use HikariCP with jdk1.7 to get the best result

    Stack Overflow | 2 years ago | Ahmed Wahbi
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
  6. 0

    Could not open Hibernate Session for transaction; nested exception is hibernate.exception.GenericJDBCException

    Stack Overflow | 2 months ago | roshani khatun
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection

    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.springframework.transaction.CannotCreateTransactionException

      Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection

      at org.springframework.orm.hibernate5.HibernateTransactionManager.doBegin()
    2. org.springframework.orm
      HibernateTransactionManager.doBegin
      1. org.springframework.orm.hibernate5.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:541)
      1 frame
    3. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      4 frames
    4. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      2 frames
    5. com.sun.proxy
      $Proxy44.validate
      1. com.sun.proxy.$Proxy44.validate(Unknown Source)
      1 frame
    6. com.taobao.rigel
      AccountAction.doLogin
      1. com.taobao.rigel.rap.account.web.action.AccountAction.doLogin(AccountAction.java:297)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    8. OGNL - Object Graph Navigation Library
      ObjectMethodAccessor.callMethod
      1. ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)
      2. ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
      3. ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
      3 frames
    9. XWork: Core
      XWorkMethodAccessor.callMethod
      1. com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
      2. com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
      2 frames
    10. OGNL - Object Graph Navigation Library
      Ognl.getValue
      1. ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
      2. ognl.ASTMethod.getValueBody(ASTMethod.java:90)
      3. ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
      4. ognl.SimpleNode.getValue(SimpleNode.java:258)
      5. ognl.Ognl.getValue(Ognl.java:494)
      6. ognl.Ognl.getValue(Ognl.java:458)
      6 frames
    11. XWork: Core
      OgnlUtil.getValue
      1. com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
      2. com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
      3. com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
      3 frames
    12. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)
      3. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)
      3 frames
    13. Struts2
      DeprecationInterceptor.intercept
      1. org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
      1 frame
    14. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      1 frame
    15. Struts2
      DebuggingInterceptor.intercept
      1. org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
      1 frame
    16. XWork
      ValidationInterceptor.doIntercept
      1. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      2. com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
      3. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      4. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      5. com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
      5 frames
    17. Struts2
      AnnotationValidationInterceptor.doIntercept
      1. org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
      1 frame
    18. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      3. com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
      4. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      5. com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
      6. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      7. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      8. com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
      9. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      10. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
      10 frames