Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
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)
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>