org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException

jpasecurity | nurquiza | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    JTA Entities not supported

    jpasecurity | 6 years ago | nurquiza
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException
  2. 0

    EclipseLink - Error: Attempted to redeploy a session without closing it

    Stack Overflow | 2 years ago | Felipe Ferreira do Amaral
    javax.persistence.PersistenceException: Exception [EclipseLink-28009] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to redeploy a session named file:######################################### without closing it.

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      No message provided

      at net.sf.jpasecurity.persistence.JpaExceptionFactory.createRuntimeException()
    2. net.sf.jpasecurity
      SecureEntityManagerFactory.createEntityManager
      1. net.sf.jpasecurity.persistence.JpaExceptionFactory.createRuntimeException(JpaExceptionFactory.java:28)
      2. net.sf.jpasecurity.configuration.AbstractExceptionFactory.createRuntimeException(AbstractExceptionFactory.java:63)
      3. net.sf.jpasecurity.security.rules.AbstractAccessRulesProvider.compileRules(AbstractAccessRulesProvider.java:132)
      4. net.sf.jpasecurity.security.rules.XmlAccessRulesProvider.initializeAccessRules(XmlAccessRulesProvider.java:53)
      5. net.sf.jpasecurity.security.rules.AbstractAccessRulesProvider.getAccessRules(AbstractAccessRulesProvider.java:93)
      6. net.sf.jpasecurity.security.rules.DefaultAccessRulesProvider.getAccessRules(DefaultAccessRulesProvider.java:49)
      7. net.sf.jpasecurity.persistence.DefaultSecureEntityManager.<init>(DefaultSecureEntityManager.java:112)
      8. net.sf.jpasecurity.persistence.DefaultSecureEntityManager.<init>(DefaultSecureEntityManager.java:83)
      9. net.sf.jpasecurity.persistence.SecureEntityManagerFactory.createSecureEntityManager(SecureEntityManagerFactory.java:106)
      10. net.sf.jpasecurity.persistence.SecureEntityManagerFactory.createEntityManager(SecureEntityManagerFactory.java:83)
      10 frames
    3. Spring ORM
      JpaTransactionManager.doBegin
      1. org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:400)
      2. org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:321)
      2 frames