[jboss-jira] [JBoss JIRA] (WFCORE-691) Can not parse a wrapped properties attribute inside a group
Tomaz Cerar (JIRA)
issues at jboss.org
Wed May 13 09:10:21 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Cerar reassigned WFCORE-691:
----------------------------------
Assignee: Tomaz Cerar (was: Brian Stansberry)
> Can not parse a wrapped properties attribute inside a group
> -----------------------------------------------------------
>
> Key: WFCORE-691
> URL: https://issues.jboss.org/browse/WFCORE-691
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 1.0.0.CR3
> Reporter: Jeff Mesnil
> Assignee: Tomaz Cerar
>
> Attribute definition is:
> {noformat}
> static final PropertiesAttributeDefinition WRAPPED_PROPERTIES_IN_GROUP = new PropertiesAttributeDefinition.Builder(
> "wrapped-properties-in-group", true)
> .setWrapXmlElement(true)
> .setWrapperElement("wrapped-properties")
> .setXmlName("property")
> .setAttributeGroup("mygroup")
> .setAllowExpression(true)
> .build();
> {noformat}
> Corresponding XML representation is:
> {noformat}
> <mygroup other-attribute-in-group="foo">
> <wrapped-properties>
> <property name="prop1" value="val1"/>
> <property name="prop2" value="val2"/>
> </wrapped-properties>
> </mygroup>
> {noformat}
> XML parsing fails with:
> {noformat}
> Message: WFLYCTL0198: Unexpected element '{urn:jboss:domain:test:1.0}mygroup' encountered
> at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:89)
> at org.jboss.as.controller.PersistentResourceXMLDescription.parseChildren(PersistentResourceXMLDescription.java:240)
> at org.jboss.as.controller.PersistentResourceXMLDescription.parse(PersistentResourceXMLDescription.java:159)
> at org.jboss.as.controller.PersistentResourceXMLDescription.parseChildren(PersistentResourceXMLDescription.java:259)
> at org.jboss.as.controller.PersistentResourceXMLDescription.parse(PersistentResourceXMLDescription.java:159)
> at org.jboss.as.controller.PersistentResourceXMLParser.readElement(PersistentResourceXMLParser.java:41)
> at org.jboss.as.controller.PersistentResourceXMLParser.readElement(PersistentResourceXMLParser.java:35)
> at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
> at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
> at org.jboss.as.controller.persistence.PersistentResourceXMLParserTestCase.testGroups(PersistentResourceXMLParserTestCas
> e.java:147)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list