NPE when overlapping 'application domains' are configured in xsdconfig
----------------------------------------------------------------------

         Key: XMLBEANS-215
         URL: http://issues.apache.org/jira/browse/XMLBEANS-215
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2    
    Reporter: Michael Skells
    Priority: Minor


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)

-- 
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]

Reply via email to