users@jaxb.java.net

[1.0.1] NPE in BGMBuilder

From: Gary Gregory <ggregory_at_seagullsw.com>
Date: Tue, 24 Jun 2003 02:08:25 -0400

Hello,

I am getting the following NPE with JAXB 1.0.1. I have attached the relevant
files. Obviously, a nice error message would be better than an NPE if I am
really doing something bogus.

Thanks,
Gary


xjc-binding:
      [xjc] Compiling
file:/C:/cvs-store/transidiom/deve/Java/Root/server/config/connectors/cics-c
onnector.xsd

BUILD FAILED
java.lang.NullPointerException
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.getBindInfoReadOnly(BGMBuilder
.java:357)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.getBindInfo(BGMBuilder.java:33
4)
        at
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.dispatchGlobalCo
nversions(BIGlobalBinding.java:180)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.promoteGlobalBindings(BGMBuild
er.java:160)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:311)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:78)
        at
com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:398)
        at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:125)
        at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:71)
        at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:325)
        at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:277)
        at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:221)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 3 seconds
java.lang.NullPointerException
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.getBindInfoReadOnly(BGMBuilder
.java:357)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.getBindInfo(BGMBuilder.java:33
4)
        at
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding.dispatchGlobalCo
nversions(BIGlobalBinding.java:180)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.promoteGlobalBindings(BGMBuild
er.java:160)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:311)
        at
com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:78)
        at
com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:398)
        at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:125)
        at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:71)
        at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:325)
        at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:277)
        at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:221)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Mon 06/23/2003 22:53:30.90
C:\cvs-store\transidiom\deve\Java\Build\jaxb\src\server\backend\cics\config>