[
http://jira.codehaus.org/browse/JIBX-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dietrich Fahrenholtz resolved JIBX-252.
---------------------------------------
Resolution: Not A Bug
Fix Version/s: JiBX 1.1.6
Hi,
I found a solution to this problem. We used JiBX collections like this one:
<collection name="MESSUNGEN" field="messungen" usage="optional">
<structure usage="optional">
<value name="MESSUNG" type="java.lang.String"/>
</structure>
</collection>
The inner structure seemed to have irritated JiBX. Instead we are using the
following collections:
<collection name="MESSUNGEN" field="messungen" usage="optional">
<value name="MESSUNG" type="java.lang.String"/>
</collection>
This seems to solve our problem.
Suggestion: Please output a clearer error message, so that the user knows there
is something wrong in his/her use of collections and structures.
Regards,
Dietrich
> Again "java.lang.IllegalStateException: Stack size mismatch on branch"
> ----------------------------------------------------------------------
>
> Key: JIBX-252
> URL: http://jira.codehaus.org/browse/JIBX-252
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.6
> Environment: Java 1.5, Win XP SP3
> Reporter: Dietrich Fahrenholtz
> Priority: Blocker
> Fix For: JiBX 1.1.6
>
> Attachments: test-jibx.zip
>
>
> We have a big problem with this "Stack size mismatch on branch" error.
> We use multiple collections which are nested inside each other. This bug,
> which was claimed to be solved, still dumps on us. Related errors are 238,
> 166, and 133. We would be very, very, VERY grateful if anybody can see into
> this issue asap. Thanks a lot!!!
> We attached our test source code to this bug report. Compile classes and then
> invoke "jibx-compile.bat".
> Best regards,
> D. Fahrenholtz
> Here is our stack trace:
> *** Error during code generation for file
> 'messages\UniverselleTicketSchnittstelle-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
> messages.JiBX_MungeAdapter.JiBX_UniverselleTicketSchnittstelle_binding_unmarshal
> generated by org.jibx.binding.def.nestedcollect...@5e179a
> from stack:
> 0: java.lang.String[]
> 1: java.lang.String[]
> to stack:
> 0: java.lang.String[]
> 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.NestedCollection.genContentUnmarshal(NestedCollection.java:172)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
> at
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
> at
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
> at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
> at
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
> at
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
> at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
> at
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
> at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
> at
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
> at
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
> at
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
> at
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
> at
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
> at
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
> at
> org.jibx.binding.def.MappingDefinition.generateUnmarshalImplementation(MappingDefinition.java:644)
> at
> org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:855)
> at
> org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:669)
> at
> org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:792)
> at org.jibx.binding.Compile.compile(Compile.java:305)
> at org.jibx.binding.Compile.main(Compile.java:385)
--
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 is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs