java.util.concurrent.ExecutionException: java.lang.RuntimeException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

Google Groups | Unknown author | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    errors when attempting to use droid for the first time

    Google Groups | 4 years ago | Unknown author
    java.util.concurrent.ExecutionException: java.lang.RuntimeException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
  2. 0

    Failure to connect via JDBC when attempting to export profile

    GitHub | 4 years ago | Dclipsham
    java.util.concurrent.ExecutionException: org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.sql.SQLException: Data source is closed

    GitHub | 3 years ago | venkatesh-tc
    java.sql.SQLException: Data source is closed
  5. 0

    Camel : Use of netty:tcp and JDBC components

    Stack Overflow | 4 years ago | Pith
    java.sql.SQLException: Data source is closed

    1 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. java.sql.SQLException

      Data source is closed

      at org.apache.commons.dbcp.BasicDataSource.createDataSource()
    2. Commons DBCP
      BasicDataSource.getConnection
      1. org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1362)
      2. org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
      2 frames
    3. Hibernate EJB
      InjectedDataSourceConnectionProvider.getConnection
      1. org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46)
      1 frame
    4. Hibernate
      JDBCTransaction.begin
      1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
      2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
      3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
      4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
      4 frames
    5. Hibernate
      SessionImpl.beginTransaction
      1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
      1 frame
    6. Hibernate EJB
      TransactionImpl.begin
      1. org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:38)
      1 frame
    7. Spring ORM
      JpaTransactionManager.doBegin
      1. org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
      2. org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:52)
      3. org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:330)
      3 frames
    8. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
      3 frames
    9. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
      2 frames
    10. uk.gov.nationalarchives
      FileWalker.handleDirectoryStart
      1. uk.gov.nationalarchives.droid.results.handlers.ResultHandlerImpl$$EnhancerByCGLIB$$8fa5af6d.handleDirectory(<generated>)
      2. uk.gov.nationalarchives.droid.submitter.DirectoryEventHandler.onEvent(DirectoryEventHandler.java:72)
      3. uk.gov.nationalarchives.droid.submitter.ProfileSpecWalkerImpl$2.handle(ProfileSpecWalkerImpl.java:116)
      4. uk.gov.nationalarchives.droid.submitter.FileWalker.handleDirectoryStart(FileWalker.java:223)
      4 frames
    11. Commons IO
      DirectoryWalker.walk
      1. org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:353)
      2. org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
      2 frames
    12. uk.gov.nationalarchives
      ProfileInstanceManagerImpl$WalkerTask.run
      1. uk.gov.nationalarchives.droid.submitter.FileWalker.walk(FileWalker.java:131)
      2. uk.gov.nationalarchives.droid.submitter.ProfileSpecWalkerImpl.walk(ProfileSpecWalkerImpl.java:130)
      3. uk.gov.nationalarchives.droid.profile.ProfileInstanceManagerImpl$WalkerTask.run(ProfileInstanceManagerImpl.java:264)
      3 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      6. java.lang.Thread.run(Thread.java:636)
      6 frames