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

Joshua Davies commented on JIBX-121:
------------------------------------

I received the same error, but I was able to narrow it down to a more specific 
binding.  At the moment, I suspect that it's the use of the "label/using" 
that's causing the problem - I'm trying to port it to an AbstractMapping, but 
if label/using is still accepted by the parse, it probably shouldn't cause 
compile errors ; ).  Here's a small binding that reproduces the same problem 
(using jibx_1_1):

<binding>
  <mapping name="OriginDestinationInformation"
           class="com.travelocity.datatype.air.common.datasource.OriginDestinati
onInformationXmlHelper">
    <value name="DepartureDateTime" get-method="getDepartureDateTime" set-method
="setDepartureDateTime"/>
    <structure name="OriginLocation"
               type="com.travelocity.datatype.air.common.AirportLocation"
               get-method="getOriginLocation"
               set-method="setOriginLocation"
               value-style="attribute"
               label="airport_location">
      <value name="LocationCode" get-method="getLocationCode" set-method="setLoc
ationCode"  />
      <value name="CodeContext" get-method="getCodeContext" set-method="setCodeC
ontext" usage="optional"/>
    </structure>

    <structure name="TPA_Extensions" >
      <structure name="DateFlexibility"
                 value-style="attribute"
                 usage="optional" >
        <value name="NbrOfDays"
               get-method="getDateFlexibility"
               set-method="setDateFlexibility"
               usage="optional"/>
      </structure>
      <collection get-method="getSisterDestinationLocations"
                  set-method="setSisterDestinationLocations"
                  usage="optional">
        <structure name="SisterDestinationLocation"
                   type="com.travelocity.datatype.air.common.AirportLocation"
                   using="airport_location"/>
      </collection>
      <collection get-method="getSisterOriginLocations"
                  set-method="setSisterOriginLocations"
                  usage="optional">
        <structure name="SisterOriginLocation"
                   type="com.travelocity.datatype.air.common.AirportLocation"
                   using="airport_location"/>
      </collection>
    </structure>
  </mapping>

</binding>

> java.lang.IllegalStateException: Internal error: Expected MyClass on stack, 
> found MyClass[]
> -------------------------------------------------------------------------------------------
>
>          Key: JIBX-121
>          URL: http://jira.codehaus.org/browse/JIBX-121
>      Project: JiBX
>         Type: Bug

>   Components: core
>     Reporter: Joshua Davies
>     Assignee: Dennis Sosnoski
>      Fix For: JiBX 1.0
>  Attachments: binding_orig.xml
>
>
> 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


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to