org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.4.1-r422266:1730418 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'

openmeetings-dev | Vasiliy Degtyarev | 8 months ago
  1. 0

    Re: error when install openmeeting on debian 8

    openmeetings-dev | 8 months ago | Vasiliy Degtyarev
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.4.1-r422266:1730418 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
  2. 0

    Could not open JPA EntityManager for transaction using MongoDB

    Stack Overflow | 2 years ago | Dima
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()
  3. 0

    Could not open JPA EntityManager for transaction; org.hibernate.exception.GenericJDBCException: Could not open connection

    Stack Overflow | 3 years ago | Sandeep vashisth
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Could not open JPA EntityManager for transaction using MongoDB

    dolinked.com | 1 year ago
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()
  6. 0

    Bug in production - connection to db

    GitHub | 11 months ago | acrepet
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.TransactionException: JDBC begin transaction failed:

  1. tvrmsmith 1 times, last 4 months ago
  2. linxiaolong 1 times, last 4 months ago
  3. Piz 1 times, last 5 months ago
  4. mauritius 2 times, last 9 months ago
15 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.springframework.transaction.CannotCreateTransactionException

    Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.4.1-r422266:1730418 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'

    at org.springframework.orm.jpa.JpaTransactionManager.doBegin()
  2. Spring ORM
    JpaTransactionManager.doBegin
    1. org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:431)
    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:463)
    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
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
    2 frames
  5. org.apache.openmeetings
    InstallWizard$InstallProcess.run
    1. org.apache.openmeetings.db.dao.basic.NavigationDao$$EnhancerBySpringCGLIB$$ca6c58c.addGlobalStructure(<generated>)
    2. org.apache.openmeetings.installation.ImportInitvalues.loadMainMenu(ImportInitvalues.java:117)
    3. org.apache.openmeetings.installation.ImportInitvalues.loadSystem(ImportInitvalues.java:607)
    4. org.apache.openmeetings.installation.ImportInitvalues.loadAll(ImportInitvalues.java:626)
    5. org.apache.openmeetings.web.pages.install.InstallWizard$InstallProcess.run(InstallWizard.java:641)
    5 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame