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

NPE when overlapping 'application domains' are configured in xsdconfig

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Version 2
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None

      Description

      if yo urun scomp with a xsdconfig file with multiple global entries for the same prePostHandler, then the error is not reported correctly, instead a NPE is thrown.

      The actual xxdsconfig file ha d multiple (30+) extension entries like this
      <xb:extension for="*">
      <xb:prePostSet>
      <xb:staticHandler>com.validsoft.utils.schema.support.PrePostHandler</xb:staticHandler>
      </xb:prePostSet>
      </xb:extension>
      It should have only have one

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.xmlbeans.impl.schema.StscState.get(StscState.java:1213)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.secondPhaseValidation(BindingConfigImpl.java:170)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:113)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
      at xmlbeanspreprocesor.Main.runscomp(Main.java:529)
      at xmlbeanspreprocesor.Main.run(Main.java:83)
      at xmlbeanspreprocesor.Main.main(Main.java:75)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikeskells Michael Skells
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: