users@jaxb.java.net

SchemaGen Exception?

From: rjain <rjain15_at_yahoo.com>
Date: Tue, 3 Apr 2007 08:54:03 -0700 (PDT)

Hi ,

When I try to use SchemaGen, I get the following Exception

- I am using JDK1.6 and JAXB jaxb-api-2.0.2.jar, jaxb-impl-2.0.2.jar


generate-schema:
[schemagen] Generating schema from 10 source files
[schemagen] An exception has occurred in apt (1.6.0). Please file a bug at
the Java Developer Connection (http://java.sun.com/webapps/bugreport) after
checking the Bug Parade for duplicates. Include your program and the
following diagnostic in your report. Thank you.
[schemagen] java.lang.NullPointerException
[schemagen] at
com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt.java:161)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1794)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.visitAssign(TreeScanner.java:203)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1342)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.visitAnnotation(TreeScanner.java:272)
[schemagen] at
com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt.java:160)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1794)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.visitModifiers(TreeScanner.java:267)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCModifiers.accept(JCTree.java:1816)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:62)
[schemagen] at
com.sun.tools.apt.comp.Apt$AptTreeScanner.visitClassDef(Apt.java:146)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:575)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
[schemagen] at
com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanner.java:54)
[schemagen] at
com.sun.tools.apt.comp.Apt$AptTreeScanner.visitTopLevel(Apt.java:124)
[schemagen] at
com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
[schemagen] at com.sun.tools.apt.comp.Apt.main(Apt.java:213)
[schemagen] at
com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
[schemagen] at com.sun.tools.apt.main.Main.compile(Main.java:1102)
[schemagen] at com.sun.tools.apt.main.Main.compile(Main.java:964)
[schemagen] at com.sun.tools.apt.Main.processing(Main.java:95)
[schemagen] at com.sun.tools.apt.Main.process(Main.java:85)
[schemagen] at com.sun.tools.apt.Main.process(Main.java:67)
[schemagen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[schemagen] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[schemagen] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[schemagen] at java.lang.reflect.Method.invoke(Method.java:597)
[schemagen] at
com.sun.tools.jxc.AptBasedTask$InternalAptAdapter.execute(AptBasedTask.java:61)
[schemagen] at com.sun.tools.jxc.AptBasedTask.compile(AptBasedTask.java:108)
[schemagen] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
[schemagen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemagen] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemagen] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemagen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemagen] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[schemagen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[schemagen] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[schemagen] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[schemagen] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[schemagen] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[schemagen] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Please help, how to get around this problem.

My Ant Script is very simple :
        <target name="generate-schema" depends="init">
                <schemagen srcdir="${src.dir}" destdir="${build.dir}/schemas">
                </schemagen>
        </target>

-- 
View this message in context: http://www.nabble.com/SchemaGen-Exception--tf3516399.html#a9816214
Sent from the java.net - jaxb users mailing list archive at Nabble.com.