Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1387

IllegalStateException when getting a connection from a removed DataSource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

      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:
              2 Start watching this issue

                Created:
                Updated: