Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. JdkDynamicAopProxy.invoke() has thrown a CannotCreateTransactionException
    Spring AOP
    6
    0
    0
  2. Unable to open EntityManager to create a transaction
    Spring Object/Relational Mapping
    15
    3
    3

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:431)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:457)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
4 frames hidden

External results for this pattern (10)

  1. Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
    Show stack trace
  2. Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    Show stack trace
  3. Davevia Stack Overflow5 months ago
    Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: EntityManagerFactory is closed
    Show stack trace
  4. 885196via Oracle Community5 months ago
    Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
    Show stack trace
  5. Niklas Saersvia Spring JIRA5 months ago
    Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.0.0-r422266:935683 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: " net.opentemperament.entities.Family".
    Show stack trace
  6. Lee Saundersvia openmeetings-user5 months ago
    Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.2.2-r422266:1468616 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    Show stack trace
  7. Could not open JPA EntityManager for transaction; nested exception is java.lang.NullPointerException
    Show stack trace
  8. Unknown authorvia nabble.com5 months ago
    Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.1.1-r422266:1148538 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: You cannot access the EntityTransaction when using managed transactions.
    Show stack trace
  9. Getachew Aredavia openmeetings-user5 months ago
    Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.3.0-r422266:1540826 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    Show stack trace
  10. badrivia Stack Overflow5 months ago
    Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    Show stack trace