[jboss-jira] [JBoss JIRA] (WFLY-13626) Transaction subsystem CMR configuration defines optional attributes but they are handled as required

Ondrej Chaloupka (Jira) issues at jboss.org
Tue Jun 30 13:17:49 EDT 2020


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

Ondrej Chaloupka updated WFLY-13626:
------------------------------------
    Description: 
The {{subsystem=transactions/commit-markable-resource=...}} defines the three attributes (https://github.com/wildfly/wildfly/blob/20.0.0.Final/transactions/src/main/resources/schema/wildfly-txn_5_0.xsd#L316) and all of them are defined as {{optional}}. But when the server is configured only with some of them it fails with

{code}
16:56:57,894 ERROR [org.jboss.as.controller] (Controller Boot Thread) 

OPVDX001: Validation error in standalone.xml -----------------------------------
|
|  476:     <commit-markable-resources>
|  477:         <commit-markable-resource jndi-name="java:jboss/datasources/ExampleDS">
|  478:             <xid-location batch-size="30" immediate-cleanup="false"/>
|                   ^^^^ 'xid-location' is missing one or more required attributes
|                        
|                        All of the following are required: name 
|
|  479:         </commit-markable-resource>
|  480:     </commit-markable-resources>
|  481: </subsystem>
|
| The primary underlying error message was:
| > ParseError at [row,col]:[478,21]
| > Message: WFLYCTL0133: Missing required attribute(s): name
|
|-------------------------------------------------------------------------------

ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)
        at org.jboss.as.server.ServerService.boot(ServerService.java:395)
        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
        at java.lang.Thread.run(Thread.java:748)

FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
{code}

  was:
The {{subsystem=transactions/commit-markable-resource=...}} defines the three attributes (https://github.com/wildfly/wildfly/blob/20.0.0.Final/transactions/src/main/resources/schema/wildfly-txn_5_0.xsd#L316) and all of them are defined as {{optional}}. But when the server is configured only with some of them it fails with

{quote}
16:56:57,894 ERROR [org.jboss.as.controller] (Controller Boot Thread) 

OPVDX001: Validation error in standalone.xml -----------------------------------
|
|  476:     <commit-markable-resources>
|  477:         <commit-markable-resource jndi-name="java:jboss/datasources/ExampleDS">
|  478:             <xid-location batch-size="30" immediate-cleanup="false"/>
|                   ^^^^ 'xid-location' is missing one or more required attributes
|                        
|                        All of the following are required: name 
|
|  479:         </commit-markable-resource>
|  480:     </commit-markable-resources>
|  481: </subsystem>
|
| The primary underlying error message was:
| > ParseError at [row,col]:[478,21]
| > Message: WFLYCTL0133: Missing required attribute(s): name
|
|-------------------------------------------------------------------------------

ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)
        at org.jboss.as.server.ServerService.boot(ServerService.java:395)
        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
        at java.lang.Thread.run(Thread.java:748)

FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
{quote}



> Transaction subsystem CMR configuration defines optional attributes but they are handled as required
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-13626
>                 URL: https://issues.redhat.com/browse/WFLY-13626
>             Project: WildFly
>          Issue Type: Bug
>          Components: Transactions
>    Affects Versions: 20.0.0.Final
>            Reporter: Ondrej Chaloupka
>            Assignee: Ondrej Chaloupka
>            Priority: Minor
>
> The {{subsystem=transactions/commit-markable-resource=...}} defines the three attributes (https://github.com/wildfly/wildfly/blob/20.0.0.Final/transactions/src/main/resources/schema/wildfly-txn_5_0.xsd#L316) and all of them are defined as {{optional}}. But when the server is configured only with some of them it fails with
> {code}
> 16:56:57,894 ERROR [org.jboss.as.controller] (Controller Boot Thread) 
> OPVDX001: Validation error in standalone.xml -----------------------------------
> |
> |  476:     <commit-markable-resources>
> |  477:         <commit-markable-resource jndi-name="java:jboss/datasources/ExampleDS">
> |  478:             <xid-location batch-size="30" immediate-cleanup="false"/>
> |                   ^^^^ 'xid-location' is missing one or more required attributes
> |                        
> |                        All of the following are required: name 
> |
> |  479:         </commit-markable-resource>
> |  480:     </commit-markable-resources>
> |  481: </subsystem>
> |
> | The primary underlying error message was:
> | > ParseError at [row,col]:[478,21]
> | > Message: WFLYCTL0133: Missing required attribute(s): name
> |
> |-------------------------------------------------------------------------------
> ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
>         at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)
>         at org.jboss.as.server.ServerService.boot(ServerService.java:395)
>         at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
>         at java.lang.Thread.run(Thread.java:748)
> FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list