[jboss-jira] [JBoss JIRA] (WFLY-5219) Datasource transformer for EAP6.2 work with wrong model version.

Hynek Švábek (JIRA) issues at jboss.org
Thu Aug 27 07:13:47 EDT 2015


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

Hynek Švábek updated WFLY-5219:
-------------------------------
    Description: 
Datasource transformer for EAP6.2 work with wrong model version.

EAP 6.2 doesn't contain datasource model version 1.2, right version is 1.1 (jboss-as-datasources_1_1.xsd)


https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/DataSourcesSubsystemRootDefinition.java#L98


I execute this command over CLI
DomainController - EAP7 DR8
Slave - EAP 6.2
{code}
data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
{code}
and get this output
{code}
Failed to execute line 'data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1': org.jboss.as.cli.CommandLineException: {"host-failure-descriptions" => {"slave" => "WFLYCTL0297: Transforming operation {
    \"address\" => [
        (\"profile\" => \"full-ha\"),
        (\"subsystem\" => \"datasources\"),
        (\"data-source\" => \"java:jboss/datasources/TestDS\")
    ],
    \"operation\" => \"add\",
    \"jndi-name\" => \"java:jboss/datasources/TestDS\",
    \"driver-name\" => \"h2\",
    \"connection-url\" => \"jdbc:h2:mem:test;DB_CLOSE_DELAY=-1\",
    \"operation-headers\" => {
        \"caller-type\" => \"user\",
        \"access-mechanism\" => \"NATIVE\",
        \"domain-uuid\" => \"1dc420b4-d16f-4d0b-9cc5-3709939cff7d\",
        \"execute-for-coordinator\" => true,
        \"domain-controller-lock-id\" => 131382573
    }
} at resource [
    (\"profile\" => \"full-ha\"),
    (\"subsystem\" => \"datasources\"),
    (\"data-source\" => \"java:jboss/datasources/TestDS\")
] to subsystem 'datasources' model version '1.2.0' -- attributes [statistics-enabled] WFLYJCA0088: Attributes [statistics-enabled] rejected. Must be true"}}
{code}

  was:
Datasource transformer for EAP6.2 work with wrong model version.

EAP 6.2 doesn't contain datasource model version 1.2, right version is 1.1 (jboss-as-datasources_1_1.xsd)

{code}
https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/DataSourcesSubsystemRootDefinition.java#L98
{code}

I execute this command over CLI
DomainController - EAP7 DR8
Slave - EAP 6.2
{code}
data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
{code}
and get this output
{code}
Failed to execute line 'data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1': org.jboss.as.cli.CommandLineException: {"host-failure-descriptions" => {"slave" => "WFLYCTL0297: Transforming operation {
    \"address\" => [
        (\"profile\" => \"full-ha\"),
        (\"subsystem\" => \"datasources\"),
        (\"data-source\" => \"java:jboss/datasources/TestDS\")
    ],
    \"operation\" => \"add\",
    \"jndi-name\" => \"java:jboss/datasources/TestDS\",
    \"driver-name\" => \"h2\",
    \"connection-url\" => \"jdbc:h2:mem:test;DB_CLOSE_DELAY=-1\",
    \"operation-headers\" => {
        \"caller-type\" => \"user\",
        \"access-mechanism\" => \"NATIVE\",
        \"domain-uuid\" => \"1dc420b4-d16f-4d0b-9cc5-3709939cff7d\",
        \"execute-for-coordinator\" => true,
        \"domain-controller-lock-id\" => 131382573
    }
} at resource [
    (\"profile\" => \"full-ha\"),
    (\"subsystem\" => \"datasources\"),
    (\"data-source\" => \"java:jboss/datasources/TestDS\")
] to subsystem 'datasources' model version '1.2.0' -- attributes [statistics-enabled] WFLYJCA0088: Attributes [statistics-enabled] rejected. Must be true"}}
{code}



> Datasource transformer for EAP6.2 work with wrong model version.
> ----------------------------------------------------------------
>
>                 Key: WFLY-5219
>                 URL: https://issues.jboss.org/browse/WFLY-5219
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management, JCA
>    Affects Versions: 10.0.0.Beta2
>            Reporter: Hynek Švábek
>            Assignee: Stefano Maestri
>            Priority: Blocker
>             Fix For: 10.0.0.CR1
>
>
> Datasource transformer for EAP6.2 work with wrong model version.
> EAP 6.2 doesn't contain datasource model version 1.2, right version is 1.1 (jboss-as-datasources_1_1.xsd)
> https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/DataSourcesSubsystemRootDefinition.java#L98
> I execute this command over CLI
> DomainController - EAP7 DR8
> Slave - EAP 6.2
> {code}
> data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
> {code}
> and get this output
> {code}
> Failed to execute line 'data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1': org.jboss.as.cli.CommandLineException: {"host-failure-descriptions" => {"slave" => "WFLYCTL0297: Transforming operation {
>     \"address\" => [
>         (\"profile\" => \"full-ha\"),
>         (\"subsystem\" => \"datasources\"),
>         (\"data-source\" => \"java:jboss/datasources/TestDS\")
>     ],
>     \"operation\" => \"add\",
>     \"jndi-name\" => \"java:jboss/datasources/TestDS\",
>     \"driver-name\" => \"h2\",
>     \"connection-url\" => \"jdbc:h2:mem:test;DB_CLOSE_DELAY=-1\",
>     \"operation-headers\" => {
>         \"caller-type\" => \"user\",
>         \"access-mechanism\" => \"NATIVE\",
>         \"domain-uuid\" => \"1dc420b4-d16f-4d0b-9cc5-3709939cff7d\",
>         \"execute-for-coordinator\" => true,
>         \"domain-controller-lock-id\" => 131382573
>     }
> } at resource [
>     (\"profile\" => \"full-ha\"),
>     (\"subsystem\" => \"datasources\"),
>     (\"data-source\" => \"java:jboss/datasources/TestDS\")
> ] to subsystem 'datasources' model version '1.2.0' -- attributes [statistics-enabled] WFLYJCA0088: Attributes [statistics-enabled] rejected. Must be true"}}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jboss-jira mailing list