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

Misleading error message when datasource is disabled

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      test-connection-in-pool fails on a disabled datasource with:

       JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS"
      
      [standalone@localhost:9999 /] /subsystem=datasources/data-source=MyExampleDS:add(jndi-name=java:jboss/datasources/MyExampleDS, connection-url=\"jdbc:h2:mem:test2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE\", driver-name=h2, user-name=sa, password=sa, max-pool-size=10)
      {"outcome" => "success"}
      [standalone@localhost:9999 /] /subsystem=datasources/data-source=MyExampleDS:test-connection-in-pool()
      {
          "outcome" => "failed",
          "failure-description" => "JBAS010440: failed to invoke operation: JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS",
          "rolled-back" => true
      }
      

      The error message should rather convey that an operation was attempted on a disabled datasource.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mstefank Martin Stefanko
                  Reporter:
                  mstefank Martin Stefanko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: