« Return to Thread: [jira] Created: (JIBX-193) CLONE -All items in unordered structure must be optional at tag "structure"

[jira] Closed: (JIBX-193) CLONE -All items in unordered structure must be optional at tag "structure"

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


     [ http://jira.codehaus.org/browse/JIBX-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Sosnoski closed JIBX-193.
--------------------------------


> CLONE -All items in unordered structure must be optional at tag "structure"
> ---------------------------------------------------------------------------
>
>                 Key: JIBX-193
>                 URL: http://jira.codehaus.org/browse/JIBX-193
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1
>            Reporter: lokesh
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.1.6
>
>
> I am trying to use flexible="true", which requires ordered="false". When setting these 2 attributes on a mapping or structure tag, it throws an exception if a nested structure element is not optional (taken from the example in the tutorial):
> <?xml version="1.0" encoding="UTF-8"?>
> <binding>
> <mapping name="customer" class="Customer" ordered="false" flexible="true">
> <structure name="person" field="person" ordered="false" flexible="true">
> <value name="cust-num" field="customerNumber"/>
> <value name="first-name" field="firstName"/>
> <value name="last-name" field="lastName"/>
> </structure>
> <value name="street" field="street"/>
> <value name="city" field="city"/>
> <value name="state" field="state"/>
> <value name="zip" field="zip"/>
> <value name="phone" field="phone"/>
> </mapping>
> </binding>
> [bind] *** Error during code generation - please enter a bug report for this error in Jira if the problem is not li
> sted as fixed on the online status page ***
> [bind] org.jibx.runtime.JiBXException: All items in unordered structure must be optional at tag "structure"(line 4,
>  col 75, in mapping/TestMapping.xml)
> [bind]     at org.jibx.runtime.impl.UnmarshallingContext.throwStartTagException(Unknown Source)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
jibx-devs@...
https://lists.sourceforge.net/lists/listinfo/jibx-devs

 « Return to Thread: [jira] Created: (JIBX-193) CLONE -All items in unordered structure must be optional at tag "structure"

LightInTheBox - Buy quality products at wholesale price!