JiBX
  1. JiBX
  2. JIBX-238

NestedCollection issue - java.lang.IllegalStateException: Stack size mismatch on branch - similar to isse 161 nad 133

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JiBX 1.1.6
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jibx 1.6.1a - Java 6
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      This has been reported before (166, 133), but these issues have been closed.
      I have just started to contruct the binding files and got this error. So the binding files are not yewt complete, but should not cause this error.

      [bind] Error running binding compiler
      [bind]
      [bind] *** Error during code generation for file 'C:\Documents and Settings\pmahoney\My Documents\X-Act\Projects\xact\OpenTravelAlliance\src\jibx\OTA_CruiseSailAvailRQ.xml' - please enter a bug report for this error in Jira if the problem is not listed as fixed on the online status page ***
      [bind] java.lang.IllegalStateException: Stack size mismatch on branch
      [bind] in method uk.co.xact.ota.JiBX_MungeAdapter.JiBX_OTA_CruiseSailAvailRQ_unmarshal
      [bind] generated by org.jibx.binding.def.NestedCollection@7244ca
      [bind] from stack:
      [bind] to stack:
      [bind] 0: java.util.List
      [bind] at org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:183)
      [bind] at org.jibx.binding.classes.BranchWrapper.setTarget(BranchWrapper.java:200)
      [bind] at org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:172)
      [bind] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
      [bind] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
      [bind] at org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
      [bind] at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
      [bind] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
      [bind] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
      [bind] at org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
      [bind] at org.jibx.binding.def.BaseMappingWrapper.genContentUnmarshal(BaseMappingWrapper.java:73)
      [bind] at org.jibx.binding.def.PassThroughComponent.genContentUnmarshal(PassThroughComponent.java:111)
      [bind] at org.jibx.binding.def.MappingReference.genContentUnmarshal(MappingReference.java:225)
      [bind] at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
      [bind] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
      [bind] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
      [bind] at org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
      [bind] at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
      [bind] at org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollection.java:167)
      [bind] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
      [bind] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
      [bind] at org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:271)
      [bind] at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:190)
      [bind] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:810)
      [bind] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:954)
      [bind] at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:314)
      [bind] at org.jibx.binding.def.MappingDefinition.generateUnmarshalImplementation(MappingDefinition.java:644)
      [bind] at org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:855)
      [bind] at org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:669)
      [bind] at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:792)
      [bind] at org.jibx.binding.Compile.compile(Compile.java:305)
      [bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
      [bind] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [bind] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      [bind] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [bind] at java.lang.reflect.Method.invoke(Method.java:597)
      [bind] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [bind] at org.apache.tools.ant.Task.perform(Task.java:348)
      [bind] at org.apache.tools.ant.Target.execute(Target.java:357)
      [bind] at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [bind] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [bind] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [bind] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [bind] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [bind] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

        Activity

        Dennis Sosnoski made changes -
        Field Original Value New Value
        Assignee Dennis Sosnoski [ dsosnoski ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Paul Mahoney
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: