org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.IllegalStateException: Can't overwrite cause)

coderanch.com | 2 months ago
  1. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast (JBoss/WildFly forum at Coderanch)

    coderanch.com | 5 months ago
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.IllegalStateException: Can't overwrite cause)
  2. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast (JBoss/WildFly forum at Coderanch)

    coderanch.com | 2 months ago
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.IllegalStateException: Can't overwrite cause)
  3. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast

    Coderanch | 4 years ago | Dave Alvarado
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.IllegalStateException: Can't overwrite cause)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    jboss 4 redeploy problem

    Google Groups | 3 years ago | Huiying Duan
    java.lang.IllegalStateException: Can't overwrite cause
  6. 0

    get errors when redeploying mbean

    Google Groups | 3 years ago | Huiying Duan
    java.lang.IllegalStateException: Can't overwrite cause

  1. Malcshour 1 times, last 7 months ago
3 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.lang.IllegalStateException

    Can't overwrite cause

    at java.lang.Throwable.initCause()
  2. Java RT
    Throwable.initCause
    1. java.lang.Throwable.initCause(Throwable.java:320)
    1 frame
  3. JBoss Application Server J2SE
    RepositoryClassLoader.findClass
    1. org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:624)
    1 frame
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    1 frame
  5. JBoss Application Server J2SE
    RepositoryClassLoader.loadClass
    1. org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:474)
    2. org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
    2 frames
  6. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    1 frame
  7. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:430)
    2. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:261)
    2 frames
  8. JBoss Application Server Connector
    WrapperDataSource.getConnection
    1. org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:172)
    2. org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)
    3. org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)
    4. org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)
    5. org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
    6. org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
    7. org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
    8. org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
    9. org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
    9 frames
  9. Hibernate EJB
    InjectedDataSourceConnectionProvider.getConnection
    1. org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:47)
    1 frame
  10. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
    2. org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
    3. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
    3 frames
  11. Hibernate EJB
    HibernatePersistence.createContainerEntityManagerFactory
    1. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
    2. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
    2 frames
  12. org.jboss.ejb3
    PersistenceUnitDeployment.start
    1. org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
    1 frame
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  14. org.jboss.ejb3
    ServiceDelegateWrapper.startService
    1. org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
    1 frame
  15. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    2 frames
  16. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  17. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  18. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4 frames
  19. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    1 frame
  20. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  21. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:417)
    1 frame
  22. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  23. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  24. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    5 frames
  25. Unknown
    $Proxy178.start
    1. $Proxy178.start(Unknown Source)
    1 frame
  26. org.jboss.ejb3
    Ejb3Module.startService
    1. org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
    2. org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
    3. org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
    4. org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    4 frames
  27. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    2 frames
  28. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  29. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  30. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4 frames
  31. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    1 frame
  32. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  33. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:417)
    1 frame
  34. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  35. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  36. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    5 frames
  37. Unknown
    $Proxy33.start
    1. $Proxy33.start(Unknown Source)
    1 frame
  38. org.jboss.ejb3
    EJB3Deployer.start
    1. org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
    1 frame
  39. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  40. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  41. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  42. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  43. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  44. org.jboss.mx
    DynamicInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    2. org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    2 frames
  45. JBoss Application Server System
    InterceptorServiceMBeanSupport.invokeNext
    1. org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    1 frame
  46. JBoss Web Services - Container JBoss-4.2.3
    DeployerInterceptor.start
    1. org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
    1 frame
  47. JBoss Application Server System JMX
    SubDeployerInterceptor.invoke
    1. org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    2. org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    2 frames
  48. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  49. Unknown
    $Proxy34.start
    1. $Proxy34.start(Unknown Source)
    1 frame
  50. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    2. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    3 frames
  51. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  52. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  53. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  54. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  55. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  56. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    1 frame
  57. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  58. Unknown
    $Proxy9.deploy
    1. $Proxy9.deploy(Unknown Source)
    1 frame
  59. org.jboss.deployment
    AbstractDeploymentScanner$ScannerThread.run
    1. org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    2. org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
    3. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    4. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
    5. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    5 frames