NPE from StscState due to BindingConfigImpl.error()
---------------------------------------------------

         Key: XMLBEANS-185
         URL: http://issues.apache.org/jira/browse/XMLBEANS-185
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2.1    
 Environment: Windows
    Reporter: Lawrence Jones
 Assigned to: Lawrence Jones 
    Priority: Minor
     Fix For: TBD
 Attachments: FooHandler.java, IFoo.java, test01.xsd, test01.xsdconfig

Will attach test01.xsd and test01.xsdconfig which refers to an extension 
interface. The command and resulting NPE are below:
\svnwork\xmlbeans\trunk\bin\scomp.cmd -verbose -cp 
\svnwork\xmlbeans\trunk\build\lib\xbean.jar;\svnwork\xmlbeans
\trunk\build\lib\jsr173_api.jar;. -src src test01.xsd test01.xsdconfig
JAVA_HOME = C:\PROGRA~1\Java\jdk1.5.0
Apache Software Foundation, org.apache.xmlbeans.XmlBeans version 2.0.1-r226289
Loading schema file test01.xsd
Loading config file test01.xsdconfig
Exception in thread "main" java.lang.NullPointerException
        at org.apache.xmlbeans.impl.schema.StscState.get(StscState.java:1215)
        at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfig
Impl.java:289)
        at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(I
nterfaceExtensionImpl.java:91)
        at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterf
ace(InterfaceExtensionImpl.java:66)
        at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(In
terfaceExtensionImpl.java:38)
        at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSett
ing(BindingConfigImpl.java:234)
        at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfi
gImpl.java:109)
        at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(
BindingConfigImpl.java:69)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCom
piler.java:940)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava: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]

Reply via email to