You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2005/08/03 03:13:56 UTC

RE: NullPointerException during schema compilation

I have looked over it and identified what is the most probable cause for this NPE, and as it turns out some checks were actually incorrect. Thanks for reporting this! I'll have a fix checked in SVN shortly.

Radu

-----Original Message-----
From: Weiler, Frank (KBV) [mailto:FWeiler@KBV.DE]
Sent: Wednesday, July 27, 2005 1:05 AM
To: user@xmlbeans.apache.org
Subject: NullPointerException during schema compilation


Hello, XMLBeans Users !

Trying to compile my XML-Schema with the V2 Release, I've got the following error message:

     [java] java.lang.NullPointerException
     [java] at org.apache.xmlbeans.impl.schema.StscChecker.mapAndSum(StscChecker.java:624)
     [java] at org.apache.xmlbeans.impl.schema.StscChecker.isParticleValidRestriction(StscChecker.java:510)
     [java] at org.apache.xmlbeans.impl.schema.StscChecker.checkRestriction(StscChecker.java:379)
     [java] at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:64)
     [java] at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
     [java] at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
     [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:947)
     [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
     [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
     [java] Exception in thread "main"
     [java] Java Result: 1

The Schema is valid itself (I think so), but where to look to resolve the error ?

Regards, Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org