[jboss-jira] [JBoss JIRA] (AS7-2199) connection related operations fail for the newly created datasources
Premysl Srubar (JIRA)
jira-events at lists.jboss.org
Mon Apr 16 10:24:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12684533#comment-12684533 ]
Premysl Srubar commented on AS7-2199:
-------------------------------------
On jboss-as-7.0.2.Final I got this exact error message when I had a mistake in the actual driver definition. I used xa-datasource-class where I should have used simple driver-class. In my case it was quite misleading error message. Not related to the jndi name at all.
> connection related operations fail for the newly created datasources
> --------------------------------------------------------------------
>
> Key: AS7-2199
> URL: https://issues.jboss.org/browse/AS7-2199
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA
> Affects Versions: 7.1.0.Alpha1
> Reporter: Alexey Loubyansky
> Assignee: Stefano Maestri
> Fix For: 7.1.0.Beta1
>
>
> [standalone at localhost:9999 /] data-source add --jndi-name=my --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 --pool-name=mypool
> [standalone at localhost:9999 /] data-source flush-all-connection-in-pool --jndi-name=my
> failed to invoke operation: failed to match pool. Check JndiName: my
> [standalone at localhost:9999 /] data-source flush-idle-connection-in-pool --jndi-name=my
> failed to invoke operation: failed to match pool. Check JndiName: my
> [standalone at localhost:9999 /] data-source test-connection-in-pool --jndi-name=my
> failed to invoke operation: failed to match pool. Check JndiName: my
> Server's log
> 17:05:42,092 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [my]
> 17:05:46,977 ERROR [org.jboss.as.controller] (pool-1-thread-5) Operation ("flush-all-connection-in-pool") failed - address: ([
> ("subsystem" => "datasources"),
> ("data-source" => "my")
> ]) - failure description: "failed to invoke operation: failed to match pool. Check JndiName: my"
> 17:06:05,056 ERROR [org.jboss.as.controller] (pool-1-thread-4) Operation ("flush-idle-connection-in-pool") failed - address: ([
> ("subsystem" => "datasources"),
> ("data-source" => "my")
> ]) - failure description: "failed to invoke operation: failed to match pool. Check JndiName: my"
> 17:06:17,149 ERROR [org.jboss.as.controller] (pool-1-thread-3) Operation ("test-connection-in-pool") failed - address: ([
> ("subsystem" => "datasources"),
> ("data-source" => "my")
> ]) - failure description: "failed to invoke operation: failed to match pool. Check JndiName: my"
> If I restart the server, the commands succeed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list