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

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.2.1.CR1
    • Fix Version/s: 7.2.1.CR1, 7.2.1.GA
    • Component/s: JCA
    • Labels:
      None

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              maeste Stefano Maestri
              Reporter:
              pmackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: