BTW, I am building with Sun Java 1.3.1_08 and Xalan 2.5.1.
Also, to fix the problem I added the missing "cics:" namespace to
xmlType="cics:url" in bindings.xjb
An error message instead of the NPE would be better of course ;-)
Gary
-----Original Message-----
From: Ed Mooney [mailto:Ed.Mooney_at_Sun.COM]
Sent: Tuesday, June 24, 2003 05:51
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: [1.0.1] NPE in BGMBuilder
Hi Gary,
Could you send along xjc-sub.xml?
Compiling cics-connector.xsd from the command line works for me:
xjc.sh cics-connector.xsd
parsing a schema...
compiling a schema...
com\seagullsw\appinterface\server\backend\bind\impl\runtime\ValidatingUnmars
haller.java
com\seagullsw\appinterface\server\backend\bind\impl\runtime\Discarder.java
com\seagullsw\appinterface\server\backend\bind\impl\runtime\UnmarshallableOb
ject.java
com\seagullsw\appinterface\server\backend\bind\impl\runtime\MarshallerImpl.j
ava
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Gary Gregory wrote:
>
> 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>
>
>
>
>