[
http://jira.codehaus.org/browse/JIBX-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski closed JIBX-125.
--------------------------------
> Stack size mismatch on branch (when trying to use abstract mappings and
> unordered content)
> ------------------------------------------------------------------------------------------
>
> Key: JIBX-125
> URL: http://jira.codehaus.org/browse/JIBX-125
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1
> Environment: Redhat Linux 9 (should be duplicable on any environment)
> Reporter: Joshua Davies
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.2
>
>
> Here's my binding (the corresponding class files shoudl be obvious):
> <binding direction="input">
> <mapping class="Person" abstract="true">
> <value style="element" name="name" field="name" usage="optional" />
> <value style="element" name="haircolor" field="haircolor"
> usage="optional" />
> </mapping>
> <mapping name="customer" class="Customer" extends="Person" ordered="false">
> <structure map-as="Person" usage="optional" />
> <value style="element" name="id" field="id" usage="optional" />
> <value style="element" name="status" field="status" usage="optional" />
> </mapping>
> </binding>
> When I try to compile, I get:
> Error running binding compiler
> *** Error during code generation for file 'binding.xml' - please enter a bug
> report for this error in Jira if the problem is not listed as fixed on the
> online status page ***
> java.lang.IllegalStateException: Stack size mismatch on branch
> in method Customer.JiBX_binding_unmarshal
> generated by [EMAIL PROTECTED]
> from stack:
> 0: Customer
> 1: Person
> to stack:
> 0: Customer
> at
> org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:183)
> at
> org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:200)
> at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:262)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:795)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:940)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
> at
> org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:582)
> at
> org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:603)
> at
> org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
> at org.jibx.binding.Compile.compile(Compile.java:305)
> at org.jibx.binding.Compile.main(Compile.java:386)
--
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