Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16467

[QE] (7.2.z) IllegalStateException when getting a connection from a removed DataSource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.2.1.CR1, 7.2.1.GA
    • 7.2.1.CR1
    • JCA
    • None

      This was discovered during pre-testing of Ironjacamar 1.4.14

      Trying to get a connection from a removed datasource used to result in

      java.sql.SQLException: javax.resource.ResourceException: IJ000470: You are trying to use a connection factory that has been shut down: java:jboss/datasources/NoRestartDatasource
      

      But after the changes introduced in JBJCA-1386 an IllegalStateException is thrown

          09:58:56,204 ERROR [stderr] (pool-8-thread-1) java.lang.IllegalStateException
          09:58:56,206 ERROR [stderr] (pool-8-thread-1)   at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:50)
          09:58:56,206 ERROR [stderr] (pool-8-thread-1)   at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.driverClassLoader(AbstractDataSourceService.java:335)
          09:58:56,207 ERROR [stderr] (pool-8-thread-1)   at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.access$000(AbstractDataSourceService.java:111)
          09:58:56,207 ERROR [stderr] (pool-8-thread-1)   at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer$2.getClassLoader(AbstractDataSourceService.java:537)
          09:58:56,208 ERROR [stderr] (pool-8-thread-1)   at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:140)
      

            smaestri@redhat.com Stefano Maestri
            pmackay@redhat.com Peter Mackay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: