java.lang.IllegalStateException: Internal error: Expected ParagraphType on 
stack, found java.lang.Object
--------------------------------------------------------------------------------------------------------

                 Key: JIBX-153
                 URL: http://jira.codehaus.org/browse/JIBX-153
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.1.3
         Environment: any
            Reporter: Joshua Davies
         Attachments: tvly_jibx.zip

Stack trace follows; binding file below (I will also provide a self-contained, 
zipped up sample that can be used to reproduce this easily):

Error running binding compiler

*** Error during code generation for file '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: Internal error: Expected ParagraphType on 
stack, found java.lang.Object
 full stack:
  0: java.lang.Object
  1: org.jibx.runtime.impl.UnmarshallingContext

        at 
org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:420)
        at 
org.jibx.binding.classes.MethodBuilder.verifyCallStack(MethodBuilder.java:537)
        at 
org.jibx.binding.classes.MethodBuilder.appendCallVirtual(MethodBuilder.java:894)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalCall(ObjectBinding.java:579)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:834)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        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:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        at 
org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:167)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        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:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        at 
org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:167)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        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:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        at 
org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:167)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
        at 
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:252)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        at 
org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
        at 
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:252)
        at 
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:798)
        at 
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:943)
        at 
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
        at 
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:599)
        at 
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:669)
        at 
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
        at org.jibx.binding.Compile.compile(Compile.java:305)
        at org.jibx.binding.Compile.main(Compile.java:385)


Binding file:

<binding direction="both">
  <!-- OTA_HotelAvailRS -->
  <mapping name="HotelItem" class="HotelAvailRSMapper"
           ordered="false">

    <structure name="RoomStays" ordered="false" usage="optional" 
test-method="isOk">
      <collection field="roomStays" usage="optional">
      <structure name="RoomStay" usage="optional"
        type="RoomStayType" >

        <structure name="RoomRates" usage="optional" test-method="hasRates" >
          <collection field="roomRates" usage="optional">
            <structure name="RoomRate" usage="optional"
                type="RoomRateType" >

              <structure name="Features" usage="optional" 
test-method="hasRoomPromotions" >
                <collection field="roomPromotions" usage="optional">
                <structure name="Feature" usage="optional">
                  <structure name="Description" usage="optional"
                             type="ParagraphType">
                    <value style="element" name="Text" field="text" 
usage="optional"/>
                  </structure>
                </structure>
                </collection>
              </structure>

            </structure>
          </collection>
        </structure>

       </structure>
      </collection>
    </structure>

  </mapping>
  <!-- TVLY_HotelAvailRS -->

</binding>

... I can't see anything obviously wrong with this binding file, either - I'm 
presently seeking a workaround for this specific issue (this is the last issue 
standing in my way from upgrading from beta3c to 1.1, at long, long last).

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