[jboss-jira] [JBoss JIRA] (WFLY-12161) The expression for the value of share-prepared-statements does not work in XA datasource .

Tomas Hofman (Jira) issues at jboss.org
Mon Jun 3 12:51:00 EDT 2019


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

Tomas Hofman moved JBEAP-17007 to WFLY-12161:
---------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-12161  (was: JBEAP-17007)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: JCA
                           (was: JCA)
    Affects Version/s: 17.0.0.Beta1
                           (was: 7.2.0.GA)


> The expression for the value of share-prepared-statements does not work in XA datasource .
> ------------------------------------------------------------------------------------------
>
>                 Key: WFLY-12161
>                 URL: https://issues.jboss.org/browse/WFLY-12161
>             Project: WildFly
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 17.0.0.Beta1
>            Reporter: Tomas Hofman
>            Assignee: Tomas Hofman
>            Priority: Major
>
> - Although  , the  "expressions-allowed" is true for "share-prepared-statements" , the expression for it does not work .
> --------------------------------------------
> [standalone at localhost:9990 /] /subsystem=datasources/xa-data-source=ExampleXADS:read-resource-description()
> "share-prepared-statements" => {
>                 "type" => BOOLEAN,
>                 "description" => "Whether to share prepared statements, i.e. whether asking for same statement twice without closing uses the same underlying prepared statement",
>                 "expressions-allowed" => true,
>                 "required" => false,
>                 "nillable" => true,
>                 "default" => false,
>                 "access-type" => "read-write",
>                 "storage" => "configuration",
>                 "restart-required" => "all-services"
>             },
> ---------------------------------------------
> - It shows below error if we set expression for share-prepared-statements .
> ---------------------------------------------
> 18:32:07,698 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 41) WFLYCTL0013: Operation ("add") failed - address: ([
>     ("subsystem" => "datasources"),
>     ("xa-data-source" => "ExampleXADS")
> ]): java.lang.IllegalArgumentException
> 	at org.jboss.dmr.ModelValue.asBoolean(ModelValue.java:69)
> 	at org.jboss.dmr.ModelNode.asBoolean(ModelNode.java:324)
> 	at org.jboss.as.connector.subsystems.datasources.DataSourceModelNodeUtil.xaFrom(DataSourceModelNodeUtil.java:292)
> 	at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceAdd.secondRuntimeStep(AbstractDataSourceAdd.java:298)
> 	at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceAdd$1.execute(AbstractDataSourceAdd.java:134)
> 	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999)
> 	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743)
> 	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
> 	at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384)
> 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
> 	at java.lang.Thread.run(Thread.java:748)
> 	at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> ---------------------------------------------
> - However , it works in a non-xa datasource .



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list