Schema generation from existing Java class crashes with all tested JDKs (1.5.11-32 Bit, JDK1.6.0u2-64 Bit, JDK1.6.0-u3 32Bit):
/opt/java/jdk1.6.0_03-32/bin/java -classpath /home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1/jaxb-impl.jar:/home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1/jaxb-api.jar:/home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1/jaxb-xjc.jar:/home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1/jsr173_api.jar:/home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1/sjsxp.jar:/opt/java/jdk1.6.0_03-32/lib/tools.jar -Djava.endorsed.dirs=/home/friedel/.IntelliJIdea70/system/webservices/jaxws-ri-2.1 com.sun.tools.jxc.SchemaGeneratorFacade -cp /home/friedel/projects/apps/test2/classes/:/home/friedel/projects/lib/commons-io-1.2.jar:/home/friedel/projects/lib/junit-3.8.2.jar:/home/friedel/projects/lib/jsdk-24.jar -d /home/friedel/projects/apps/test2/src2/de/friedelprivat/test de.friedelprivat.test.XmlBeanTest
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.jxc.SchemaGenerator.run(SchemaGenerator.java:128)
at com.sun.tools.jxc.SchemaGenerator.run(SchemaGenerator.java:38)
at com.sun.tools.jxc.SchemaGenerator.main(SchemaGenerator.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.jxc.SchemaGeneratorFacade.main(SchemaGeneratorFacade.java:20)
Caused by: java.lang.NullPointerException
at com.sun.tools.jxc.SchemaGenerator$Runner.main(SchemaGenerator.java:184)
... 12 more
Done