users@jaxb.java.net

Re: Regression bug in XJC 2.1

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 10 Jan 2007 09:38:00 -0800

Ouch. Thank you for reporting this.

Kenny MacLeod wrote:
> I've found a minor regression bug moving from RI 2.0.4 to 2.1. I've
> filed it as https://jaxb.dev.java.net/issues/show_bug.cgi?id=301
>
> I was trying to use XJC to bind a schema with an external binding
> customisation file, but the schemaLocation attribute of the top-level
> jaxb:bindings was referring to the wrong schema file.
>
> Under 2.0.4, XJC throw the following error:
>
> [xjc] [ERROR] "file:theWrongSchema.xsd" is not a part of this
> compilation. Is this a mistake for "file:theRightSchema.xsd"?
> [xjc] line 8 of file:binding.xjb
>
>
> This is good - easily fixed.
>
> However, under 2.1, I get the following rather less useful response:
>
> java.lang.NullPointerException
> at
> com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:187)
> at
> com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:271)
> at
> com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:118)
> at
> com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:80)
> at
> com.sun.tools.xjc.reader.internalizer.DOMForest.transform(DOMForest.java:432)
> at
> com.sun.tools.xjc.ModelLoader.buildDOMForest(ModelLoader.java:326)
> at
> com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:358)
> at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:151)
> at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:97)
> at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:469)
> at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:416)
> at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:351)
> at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:67)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com