Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10949

IllegalArgumentException when get jdbc driver info if xa-datasource-class is not defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 15.0.0.Beta1, 15.0.0.Final
    • None
    • JCA
    • None

    Description

      Download oracle jdbc driver at http://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html

      Install the driver as a module and add the JDBC driver:

      module add --name=com.oracle.jdbc --resources=/opt/Downloads/ojdbc8.jar --dependencies=[javax.api, javax.transaction.api]
      
      /subsystem=datasources/jdbc-driver=oracle:add(driver-name=oracle, driver-module-name=com.oracle.jdbc, driver-datasource-class-name=oracle.jdbc.pool.OracleDataSource,  driver-class-name=oracle.jdbc.OracleDriver)
      

      Then the following command will fail:

      /subsystem=datasources:get-installed-driver(driver-name=oracle)
      

      The fail message is like:

      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: newValue is null",
          "rolled-back" => true
      }
      
      

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified