[jboss-jira] [JBoss JIRA] (JBAS-9581) misleading error message when datasource is disabled

Johnathon Lee (JIRA) issues at jboss.org
Mon Jul 25 10:11:01 EDT 2016


Johnathon Lee created JBAS-9581:
-----------------------------------

             Summary: misleading error message when datasource is disabled
                 Key: JBAS-9581
                 URL: https://issues.jboss.org/browse/JBAS-9581
             Project: Application Server 3  4  5 and 6
          Issue Type: Bug
          Components: JCA service
            Reporter: Johnathon Lee
            Assignee: Jesper Pedersen


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

{code:java}
 JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS"
{code}

{code:java}
[standalone at 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 at 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
}
{code}

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





--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list