Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-184

NPE thrown when compiling schemas with noPva not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 2
    • Version 2.1
    • Compiler
    • None
    • XP, jdk 1.5

    Description

      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)

      Attachments

        1. vdx_data.zip
          17 kB
          Rajiv Bala

        Activity

          People

            rbalacha Rajiv Bala
            rbalacha Rajiv Bala
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: