This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139788 - Wizard and generated ANT task throws NullPointerException
Summary: Wizard and generated ANT task throws NullPointerException
Status: VERIFIED INVALID
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P4 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-12 16:07 UTC by arieh
Modified: 2009-01-06 23:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
libvirt relaxNG schema (19.68 KB, text/xml)
2008-07-12 16:08 UTC, arieh
Details
image relaxNG schema (8.45 KB, text/xml)
2008-07-12 16:08 UTC, arieh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arieh 2008-07-12 16:07:22 UTC
When trying to generate a JAXB parser for the Relax-NG schema for libvirt.rng (http://libvirt.org/libvirt.rng),
the ant target generated throws a NullPointerException.


init:
deps-jar:
xjc-typedef-target:
jaxb-code-generation:
Compiling file:/Users/arieh/NetBeansProjects/RelaxNGParser/xml-resources/jaxb/libvirt/libvirt.rng.xml
java.lang.NullPointerException
        at org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service$Loader2.getResources(DatatypeLibraryLoader.java:151)
        at org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service.<init>(DatatypeLibraryLoader.java:173)
        at org.relaxng.datatype.helpers.DatatypeLibraryLoader.<init>(DatatypeLibraryLoader.java:57)
        at org.kohsuke.rngom.binary.SchemaBuilderImpl.<init>(SchemaBuilderImpl.java:96)
        at org.kohsuke.rngom.ast.util.CheckingSchemaBuilder.<init>(CheckingSchemaBuilder.java:45)
        at com.sun.tools.xjc.ModelLoader.loadRELAXNG(ModelLoader.java:579)
        at com.sun.tools.xjc.ModelLoader.loadRELAXNG(ModelLoader.java:556)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:154)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:113)
        at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:487)
        at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
        at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:369)
        at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 0 seconds)
Comment 1 arieh 2008-07-12 16:08:06 UTC
Created attachment 64379 [details]
libvirt relaxNG schema
Comment 2 arieh 2008-07-12 16:08:46 UTC
Created attachment 64380 [details]
image relaxNG schema
Comment 3 _ gmpatil 2008-07-13 20:29:55 UTC
Relax NG support is experimental and not supported in JAXB RI [1].
You may want to raise the issue @ https://jaxb.dev.java.net/issues/


[1] https://jaxb.dev.java.net/2.1.6/docs/xjc.html
Comment 4 rpoon 2009-01-06 23:18:35 UTC
Generating JAXB binding with wizard using Relax NG is not supported.