JiBX
  1. JiBX
  2. JIBX-127

ArrayIndexOutOfBoundException while mapping compilation

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JiBX 1.1.2
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      1

      Description

      When I try to compile the mapping using Binding compiler.I get an error trace as follows :-

      [bindJibx] Error running binding compiler
      [bindJibx] *** Error during code generation - please enter a bug report for this error in Jira if the problem is not listed as fixed on the online status page ***
      [bindJibx] java.lang.ArrayIndexOutOfBoundsException: -1
      [bindJibx] at java.util.ArrayList.get(ArrayList.java:326)
      [bindJibx] at org.jibx.binding.classes.MethodBuilder.appendLoadLocal(MethodBuilder.java:1094)
      [bindJibx] at org.jibx.binding.def.NestedStructure.genFlagTest(NestedStructure.java:327)
      [bindJibx] at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:244)
      [bindJibx] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:795)
      [bindJibx] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:940)
      [bindJibx] at org.jibx.binding.def.ComponentProperty.genContentUnmarshal(ComponentProperty.java:256)
      [bindJibx] at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:257)
      [bindJibx] at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:795)
      [bindJibx] at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:940)
      [bindJibx] at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:315)
      [bindJibx] at org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:582)
      [bindJibx] at org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:603)
      [bindJibx] at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
      [bindJibx] at org.jibx.binding.Compile.compile(Compile.java:305)
      [bindJibx] at com.bsil.project.airtrade.jixb.test.JibxCompileTask.execute(JibxCompileTask.java:218)
      [bindJibx] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [bindJibx] at org.apache.tools.ant.Task.perform(Task.java:364)
      [bindJibx] at org.apache.tools.ant.Target.execute(Target.java:341)
      [bindJibx] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [bindJibx] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [bindJibx] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [bindJibx] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [bindJibx] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [bindJibx] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [bindJibx] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [bindJibx] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

        Activity

        Hide
        Dennis Sosnoski added a comment -

        I can't run the test code provided (it's incomplete), but I believe this issue has been fixed in the current CVS.

        Show
        Dennis Sosnoski added a comment - I can't run the test code provided (it's incomplete), but I believe this issue has been fixed in the current CVS.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Pradeepta B
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: