users@jaxb-verification.java.net

Problem in compiling with -Xverification

From: Geo Thomas <geot_at_MIT.EDU>
Date: Thu, 28 Jul 2005 13:04:48 -0400

hi,
   I am using this tool to get the validation details and found very useful
one. When i try to compile a particular schema, it throws this exception...
Would be really helpful if somebody could throw any input on this...

When i analyse the schema, the following validation rule causes the problem...

<xs:element name="NSF_SuggestedReviewers" nillable="true">

It doesnt like "nillable=true"

   IT works fine if i remove this.

The schema which i tired to compile is :
http://apply.grants.gov/forms/schemas/NSF_SuggestedReviewers-V1.0.xsd


   The exception is ----

java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.NullPointerException
         at com.sun.codemodel.JFormatter.g(JFormatter.java:171)
         at com.sun.codemodel.JOp$UnaryOp.generate(JOp.java:47)
         at com.sun.codemodel.JFormatter.g(JFormatter.java:171)
         at com.sun.codemodel.JConditional.state(JConditional.java:60)
         at com.sun.codemodel.JFormatter.s(JFormatter.java:191)
         at com.sun.codemodel.JBlock.generate(JBlock.java:368)
         at com.sun.codemodel.JFormatter.g(JFormatter.java:171)
         at com.sun.codemodel.JBlock.state(JBlock.java:377)
         at com.sun.codemodel.JFormatter.s(JFormatter.java:191)
         at com.sun.codemodel.JBlock.generate(JBlock.java:368)
         at com.sun.codemodel.JFormatter.g(JFormatter.java:171)
         at com.sun.codemodel.JBlock.state(JBlock.java:377)
         at com.sun.codemodel.JFormatter.s(JFormatter.java:191)
         at com.sun.codemodel.JBlock.generate(JBlock.java:368)
         at com.sun.codemodel.JFormatter.g(JFormatter.java:171)
         at com.sun.codemodel.JBlock.state(JBlock.java:377)
         at com.sun.codemodel.JFormatter.s(JFormatter.java:191)
         at com.sun.codemodel.JMethod.declare(JMethod.java:245)
         at com.sun.codemodel.JFormatter.d(JFormatter.java:181)
         at com.sun.codemodel.JDefinedClass.declareBody(JDefinedClass.java:517)
         at com.sun.codemodel.JDefinedClass.declare(JDefinedClass.java:500)
         at
com.sun.codemodel.JPackageMemberClass.declare(JPackageMemberClass.jav
         at com.sun.codemodel.JPackage.build(JPackage.java:364)
         at com.sun.codemodel.JCodeModel.build(JCodeModel.java:157)
         at com.sun.tools.xjc.Driver.run(Driver.java:235)
         at com.sun.tools.xjc.Driver._main(Driver.java:80)
         at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
         at com.sun.tools.xjc.Driver$1.run(Driver.java:60)


Thanks in advance
Geo