[ 
http://jira.codehaus.org/browse/JIBX-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172275#action_172275
 ] 

Magne commented on JIBX-121:
----------------------------

I see there hasn't been commented on this issue in years, but i am using an old 
version of JiBX and i am having the same problem (stack error when using 
"using" inside a collection). It seems that if i write it out (a lot of 
redudancy) it seems to work.

I also tried the latest version of JiBX, but the binding format seems to have 
changed a lot as i get spammed with lots of errors and deprecated warnings (i 
have a rather large binding file).

What is/was the best way to handle this problem with the old version? 

> java.lang.IllegalStateException: Internal error: Expected MyClass on stack, 
> found MyClass[]
> -------------------------------------------------------------------------------------------
>
>                 Key: JIBX-121
>                 URL: http://jira.codehaus.org/browse/JIBX-121
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>            Reporter: Joshua Davies
>            Assignee: Dennis Sosnoski
>         Attachments: binding_orig.xml, jibx_121.zip
>
>
> Occurs during Compile step on a 16kb, somewhat deeply-nested binding.xml.
> Also tested current CVS version with same result.
>  full stack:
>   0: MyClass[]
>   1: MyClass[]
>   2: org.jibx.runtime.impl.UnmarshallingContext
>       at 
> org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:393)
>       at 
> org.jibx.binding.classes.MethodBuilder.verifyCallStack(MethodBuilder.java:510)
>       at 
> org.jibx.binding.classes.MethodBuilder.appendCallVirtual(MethodBuilder.java:867)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalCall(ObjectBinding.java:568)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:823)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:200)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:143)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:245)
>       at 
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:156)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.BaseMappingWrapper.genContentUnmarshal(BaseMappingWrapper.java:73)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:156)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:200)
>       at 
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:267)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:156)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.BaseMappingWrapper.genContentUnmarshal(BaseMappingWrapper.java:73)
>       at 
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:267)
>       at 
> org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
>       at 
> org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:156)
>       at 
> org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:787)
>       at 
> org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:932)
>       at 
> org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:267)
>       at 
> org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:592)
>       at 
> org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:602)
>       at 
> org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:611)
>       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

        

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to