[ http://jira.codehaus.org/browse/JIBX-121?page=all ]

Joshua Davies updated JIBX-121:
-------------------------------

    Attachment: jibx_121.zip

Even smaller zip that consistently reproduces the problem, along with 
compilable source code.

Upon further testing, the problem seems to be limited to jibx-rc0 and up 
(including jibx-1.1, which is the latest release), and only occurs when you try 
to refer to a previously "label"-ed structure inside a collection (included 
binding.xml file demonstrates this exactly).

I'll continue to debug and see if I can pin down the precise cause.

> 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
>         Assigned To: Dennis Sosnoski
>             Fix For: JiBX 1.0
>
>         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

        

-------------------------------------------------------------------------
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

Reply via email to