JiBX
  1. JiBX
  2. JIBX-423

IllegalArgumentException during build when xml element name is "STRUCT"

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2.2
    • Fix Version/s: JiBX 1.2.3
    • Component/s: eclipse-plugin
    • Labels:
      None
    • Environment:
      Windows 7 64 bit
    • Number of attachments :
      0

      Description

      The following exception is thrown when building using the eclipse plug-in.
      It only occurs if I change the name of my mapping to "STRUCT". "STRUCTURE" works fine - but I have to map to someone elses xml.

      <binding>
      <mapping name="STRUCT" class="au.com.xxx.xxxx">
      ...
      </mapping>
      </binding>

      java.lang.IllegalArgumentException:
      at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      at org.eclipse.core.runtime.Assert.isLegal(Assert.java:47)
      at org.eclipse.core.runtime.Status.setSeverity(Status.java:244)
      at org.eclipse.core.runtime.Status.<init>(Status.java:82)
      at org.jibx.eclipse.builder.JibxBindingBuilder.bindAll(JibxBindingBuilder.java:169)
      at org.jibx.eclipse.builder.JibxBindingBuilder.incrementalBuild(JibxBindingBuilder.java:207)
      at org.jibx.eclipse.builder.JibxBindingBuilder.build(JibxBindingBuilder.java:98)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

        Activity

        Hide
        Peter Carpenter added a comment -

        Fixed in 1.2.3

        Show
        Peter Carpenter added a comment - Fixed in 1.2.3
        Peter Carpenter made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s JiBX 1.2.3 [ 16349 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Carpenter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: