[ http://issues.apache.org/jira/browse/XMLBEANS-184?page=all ] Rajiv Bala closed XMLBEANS-184: -------------------------------
This is fixed now. A new test case was added for this which is now passing (rev 328804). > NPE thrown when compiling schemas with noPva not set > ---------------------------------------------------- > > Key: XMLBEANS-184 > URL: http://issues.apache.org/jira/browse/XMLBEANS-184 > Project: XMLBeans > Type: Bug > Components: Compiler > Versions: Version 2 > Environment: XP, jdk 1.5 > Reporter: Rajiv Bala > Assignee: Rajiv Bala > Fix For: Version 2.1 > Attachments: vdx_data.zip > > This was reported by Frank Weiler on the user list. When compiling a set of > schemas, an NPE is thrown if scomp is run with defaults. The compilation goes > through if the -noPva option is used. > Attached below is the stack trace: > Exception in thread "main" java.lang.NullPointerException > at > org.apache.xmlbeans.impl.schema.StscChecker.mapAndSum(StscChecker.java:624) > at > org.apache.xmlbeans.impl.schema.StscChecker.isParticleValidRestriction(StscChecker.java:510) > at > org.apache.xmlbeans.impl.schema.StscChecker.checkRestriction(StscChecker.java:379) > at > org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:64) > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310) > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181) > at > org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:948) > at > org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1068) > at > org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]