org.apache.openjpa.persistence.PersistenceException: Connection does not have a registered XAResource jdbc:derby:firstdb, UserName=sa, Apache Derby Embedded JDBC Driver

openejb-users | Michael Baylis | 5 years ago
  1. 0

    JUnit embedded OPENEJB and XAResource problems

    openejb-users | 5 years ago | Michael Baylis
    org.apache.openjpa.persistence.PersistenceException: Connection does not have a registered XAResource jdbc:derby:firstdb, UserName=sa, Apache Derby Embedded JDBC Driver
  2. 0

    JUnit embedded OPENEJB and XAResource problems

    openejb-users | 5 years ago | Michael Baylis
    org.apache.openjpa.persistence.PersistenceException: Connection does not have a registered XAResource jdbc:derby:firstdb, UserName=sa, Apache Derby Embedded JDBC Driver
  3. 0

    java.sql.SQLException: Data source is closed

    GitHub | 3 years ago | venkatesh-tc
    java.sql.SQLException: Data source is closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Camel : Use of netty:tcp and JDBC components

    Stack Overflow | 3 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

      Connection does not have a registered XAResource jdbc:derby:firstdb, UserName=sa, Apache Derby Embedded JDBC Driver

      at org.apache.commons.dbcp.managed.TransactionRegistry.getXAResource()
    2. Commons DBCP
      BasicDataSource.getConnection
      1. org.apache.commons.dbcp.managed.TransactionRegistry.getXAResource(TransactionRegistry.java:78)
      2. org.apache.commons.dbcp.managed.TransactionContext.setSharedConnection(TransactionContext.java:88)
      3. org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:131)
      4. org.apache.commons.dbcp.managed.ManagedConnection.<init>(ManagedConnection.java:55)
      5. org.apache.commons.dbcp.managed.ManagedDataSource.getConnection(ManagedDataSource.java:77)
      6. org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
      6 frames
    3. OpenJPA Aggregate Jar
      EntityManagerFactoryImpl.createEntityManager
      1. org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:131)
      2. org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:106)
      3. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:91)
      4. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:102)
      5. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)
      6. org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1510)
      7. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)
      8. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
      9. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104)
      10. org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
      11. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
      12. org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:949)
      13. org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:940)
      14. org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:637)
      15. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:204)
      16. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
      17. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
      18. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
      18 frames
    4. OpenEJB :: OSGi :: Core
      JtaEntityManager.find
      1. org.apache.openejb.persistence.JtaEntityManagerRegistry.getEntityManager(JtaEntityManagerRegistry.java:115)
      2. org.apache.openejb.persistence.JtaEntityManager.getEntityManager(JtaEntityManager.java:77)
      3. org.apache.openejb.persistence.JtaEntityManager.find(JtaEntityManager.java:150)
      3 frames
    5. uk.me.baylishome
      TestEJB.getTestString
      1. uk.me.baylishome.homeaccounts.ejb.impl.TestEJB.getTestString(TestEJB.java:29)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    7. OpenEJB :: OSGi :: Core
      StatsInterceptor.invoke
      1. org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
      2. org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
      3. org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
      4. org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
      4 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    9. OpenEJB :: OSGi :: Core
      CdiInterceptor.aroundInvoke
      1. org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
      2. org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
      3. org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
      4. org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
      5. org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
      6. org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
      6 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    11. OpenEJB :: OSGi :: Core
      BaseEjbProxyHandler.invoke
      1. org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
      2. org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
      3. org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:130)
      4. org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:226)
      5. org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
      6. org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:255)
      7. org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:235)
      8. org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
      9. org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:284)
      9 frames