Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
Version 2.1
-
None
-
Windows
Description
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)