JiBX
  1. JiBX
  2. JIBX-255

incorrect processing of the xsd file

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.1
    • Fix Version/s: JiBX 1.2.1
    • Component/s: CodeGen
    • Labels:
      None
    • Environment:
      Windows XP, JDK 1.5.0_11
    • Number of attachments :
      0

      Description

      Hello,

      I'm trying to build the binding for the following xsd:
      http://docs.oasisopen.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

      xsd2jibx fails with the following message:
      "Invalid package name: org.oasis-open.docs.wss._2004._01.oasis_200401_wss_wssecurity_secext_1_0_xsd"

      Replacing "oasis-open" with "oasisopen", i receive the following stacktrace:
      java.lang.NullPointerException
      at org.jibx.xsd2jibx.NameUtil.trimPrefix(NameUtil.java:213)
      at org.jibx.xsd2jibx.XsdStructure.getXsdType(XsdStructure.java:100)
      at org.jibx.xsd2jibx.XsdSimpleType.getBase(XsdSimpleType.java:14)
      at org.jibx.xsd2jibx.Generator.getQNameSimpleType(Generator.java:363)
      at org.jibx.xsd2jibx.Generator.getQName(Generator.java:546)
      at org.jibx.xsd2jibx.XsdFeature.getFieldQName(XsdFeature.java:87)
      at org.jibx.xsd2jibx.JSource.newField(JSource.java:171)
      at org.jibx.xsd2jibx.JSource.newBeanProperty(JSource.java:111)
      at org.jibx.xsd2jibx.XsdComplexType.processStructure(XsdComplexType.java:383)
      at org.jibx.xsd2jibx.XsdComplexType.process(XsdComplexType.java:245)
      at org.jibx.xsd2jibx.Generator.execute(Generator.java:233)
      at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
      at org.jibx.xsd2jibx.Generate.main(Generate.java:182)

      Any help will be highly appreciated.

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Try this with the new CodeGen tool in the 1.2 code (currently available as beta 1 in the Sourceforge "test" package). This is the official replacement for xsd2jibx, and is much more capable and complete.

        Show
        Dennis Sosnoski added a comment - Try this with the new CodeGen tool in the 1.2 code (currently available as beta 1 in the Sourceforge "test" package). This is the official replacement for xsd2jibx, and is much more capable and complete.
        Dennis Sosnoski made changes -
        Field Original Value New Value
        Assignee Dennis Sosnoski [ dsosnoski ]
        Hide
        Dennis Sosnoski added a comment -

        Tried this out using the latest code and the latest version of the WS-Security schemas, and after fixing some problems due to element and attribute reference handling got it to generate, compile, and bind without errors.

        Show
        Dennis Sosnoski added a comment - Tried this out using the latest code and the latest version of the WS-Security schemas, and after fixing some problems due to element and attribute reference handling got it to generate, compile, and bind without errors.
        Dennis Sosnoski made changes -
        Fix Version/s JiBX 1.2.1 [ 15067 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dennis Sosnoski made changes -
        Affects Version/s JiBX 1.1 [ 12217 ]
        Affects Version/s xsd2jibx-beta0.2 [ 11090 ]
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Sosnoski made changes -
        Component/s xsd2jibx [ 10675 ]
        Component/s CodeGen [ 13794 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Ilya Lebedev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: