[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-215) NPE when overlapping 'application domains' are configured in xsdconfi
From:       "Michael Skells (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2005-10-14 17:23:47
Message-ID: 1859128473.1129310627169.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic