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

Dennis Sosnoski closed JIBX-138.
--------------------------------


> ordered="false" requires nested structures to be optional
> ---------------------------------------------------------
>
>                 Key: JIBX-138
>                 URL: http://jira.codehaus.org/browse/JIBX-138
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1
>            Reporter: Francois Forster
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.1.2
>
>         Attachments: testCase.zip
>
>
> 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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to