You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Lawrence Jones (JIRA)" <xm...@xml.apache.org> on 2005/08/03 20:08:41 UTC
[jira] Created: (XMLBEANS-185) NPE from StscState due to BindingConfigImpl.error()
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-185) NPE from StscState due to BindingConfigImpl.error()
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-185?page=comments#action_12317524 ]
Lawrence Jones commented on XMLBEANS-185:
-----------------------------------------
Found issue. I had failed to include IFoo and FooHandler in the classpath. Nonetheless when it tries to report this problem it ends up calling StscState.get() before StscState.start() has been called which results in the NPE. This still needs to be fixed.
> 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
> Assignee: 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Updated: (XMLBEANS-185) NPE from StscState due to BindingConfigImpl.error()
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-185?page=all ]
Lawrence Jones updated XMLBEANS-185:
------------------------------------
Attachment: test01.xsd
> 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
> Assignee: 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Updated: (XMLBEANS-185) NPE from StscState due to BindingConfigImpl.error()
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-185?page=all ]
Lawrence Jones updated XMLBEANS-185:
------------------------------------
Attachment: test01.xsdconfig
IFoo.java
FooHandler.java
> 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
> Assignee: 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-185) NPE from StscState due to BindingConfigImpl.error()
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-185?page=all ]
Lawrence Jones resolved XMLBEANS-185:
-------------------------------------
Fix Version: Version 2.1
(was: TBD)
Resolution: Duplicate
Turned out that this had the same underlying cause as XMLBEANS-133 and was fixed by the same checkin - #227480.
> 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
> Assignee: Lawrence Jones
> Priority: Minor
> Fix For: Version 2.1
> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org