Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6305660

xjc -b throws NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • xml
    • b56
    • other
    • solaris_9
    • Verified

      This is with

          java -version
          java version "1.6.0-ea"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b46)
          Java HotSpot(TM) Server VM (build 1.6.0-ea-b46, mixed mode)

      and

          xjc -version
          xjc version "2.0-EA"
          JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build 2.0-EA)

          xjc -b test.xjb test.xsd
          parsing a schema...
          Exception in thread "main" java.lang.NullPointerException
                  at com.sun.tools.xjc.ModelLoader.buildDOMForest(ModelLoader.java:284)
                  at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:322)
                  at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:130)
                  at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:76)
                  at com.sun.tools.xjc.Driver.run(Driver.java:232)
                  at com.sun.tools.xjc.Driver.run(Driver.java:146)
                  at com.sun.tools.xjc.Driver._main(Driver.java:71)
                  at com.sun.tools.xjc.Driver.access$000(Driver.java:37)
                  at com.sun.tools.xjc.Driver$1.run(Driver.java:51)
      Bhakti, Do you have a standalone test case to reproduce this ? From the description, it seems this bug and 6290631 are related. As 6290631 is not reproducable with latest sources, it can be possible that this bug is fixed too.

      Can you confirm this ? Latest JAXP 1.4 sources are available from java.net CVS.
      Nightly builds are available from "/net/ogla.sfbay/bld1/BUILD_AREA/jaxp1.4/build/latest/binaries"

      - Neeraj

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: