[jboss-jira] [JBoss JIRA] (AS7-4865) Datasource after creation is in a peculiar state

Stefano Maestri (JIRA) jira-events at lists.jboss.org
Tue May 22 09:31:18 EDT 2012


     [ https://issues.jboss.org/browse/AS7-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Maestri moved JBPAPP-9111 to AS7-4865:
----------------------------------------------

              Project: Application Server 7  (was: JBoss Enterprise Application Platform)
                  Key: AS7-4865  (was: JBPAPP-9111)
             Workflow: GIT Pull Request workflow   (was: jira)
    Affects Version/s:     (was: EAP 6.0.0 ER 8)
                           (was: EAP 6.0.0 ER 7)
          Component/s: JCA
                           (was: Consoles)
                           (was: JCA)
             Security:     (was: Public)
        Fix Version/s:     (was: TBD EAP 6)
       Docs QE Status:   (was: NEW)

    
> Datasource after creation is in a peculiar state
> ------------------------------------------------
>
>                 Key: AS7-4865
>                 URL: https://issues.jboss.org/browse/AS7-4865
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JCA
>            Reporter: Jan Martiska
>            Assignee: Stefano Maestri
>            Priority: Critical
>
> Create a (xa)datasource in admin console. Try to disable it using the appropriate button. This error will happen:
> {noformat}
> Request
> {
>     "xa-datasource-class" => "org.h2.jdbcx.JdbcDataSource",
>     "pad-xid" => false,
>     "wrap-xa-resource" => false,
>     "same-rm-override" => false,
>     "interleaving" => false,
>     "name" => "qrh",
>     "driver-name" => "h2",
>     "password" => "",
>     "enabled" => true,
>     "user-name" => "",
>     "security-domain" => "",
>     "jndi-name" => "java:/uyyyy",
>     "pool-name" => "",
>     "transaction-isolation" => "",
>     "new-connection-sql" => "",
>     "connection-url" => "",
>     "driver-class" => "",
>     "valid-connection-checker-class-name" => "",
>     "check-valid-connection-sql" => "",
>     "background-validation" => false,
>     "background-validation-millis" => -1L,
>     "validate-on-match" => false,
>     "stale-connection-checker-class-name" => "",
>     "exception-sorter-class-name" => "",
>     "prepared-statements-cache-size" => -1L,
>     "share-prepared-statements" => false,
>     "use-ccm" => false,
>     "operation" => "disable",
>     "address" => [
>         ("subsystem" => "datasources"),
>         ("xa-data-source" => "qrh")
>     ],
>     "operation-headers" => {"allow-resource-service-restart" => true}
> }
> Response
> Internal Server Error
> {
>     "outcome" => "failed",
>     "failure-description" => "JBAS010455: Data-source service [qrh] is not enabled",
>     "rolled-back" => true,
>     "response-headers" => {"process-state" => "restart-required"}
> }
> {noformat}
> It states that "Data-source service [qrh] is not enabled" even though the datasource has property "enabled" equal "true". 
> After you disable the datasource in CLI using :disable operation (this works) and then enable it back -> from this point, disabling and enabling in console will work, just the first time (after creation) it doesn't.
> *Also, weird thing is - after you create a datasource, it is not shown in JNDI naming tree, it looks like it is not active, even though CLI says it is enabled.* You have to reload server, only then will the datasource appear in JNDI naming tree - it behaves like datasource creation requires server-reload, but JCA subsystem doesn't indicate this.
> What is the correct behavior? 

--
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