[ http://jira.codehaus.org/browse/JIBX-125?page=comments#action_70935 ] Joshua Davies commented on JIBX-125: ------------------------------------
I can post a full .zip including a duplicable sample, if useful. > 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 > > 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
