You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Harald Meyer (JIRA)" <xm...@xml.apache.org> on 2005/06/07 15:09:49 UTC
[jira] Created: (XMLBEANS-162) NPE during schema compilation with extension
NPE during schema compilation with extension
--------------------------------------------
Key: XMLBEANS-162
URL: http://issues.apache.org/jira/browse/XMLBEANS-162
Project: XMLBeans
Type: Bug
Components: Compiler
Versions: Version 2 Beta 1
Reporter: Harald Meyer
When no extensions are used, everything works fine. Stack trace:
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
[java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
[java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
[java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
[java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
[java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
[java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
[java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
[java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
[java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
>From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
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] Assigned: (XMLBEANS-162) NPE during schema compilation with extension
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-162?page=all ]
Lawrence Jones reassigned XMLBEANS-162:
---------------------------------------
Assign To: Cezar Andrei
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: http://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2 Beta 1
> Reporter: Harald Meyer
> Assignee: Cezar Andrei
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
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-162) NPE during schema compilation with
extension
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Preotiuc-Pietro resolved XMLBEANS-162.
-------------------------------------------
Resolution: Fixed
Fix Version/s: Version 2.4
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: https://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2 Beta 1
> Reporter: Harald Meyer
> Assignee: Jacob Danner
> Fix For: Version 2.4
>
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-162) NPE during schema compilation with extension
Posted by "Rajiv Bala (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-162?page=comments#action_12313647 ]
Rajiv Bala commented on XMLBEANS-162:
-------------------------------------
Could you attach the schema that was used ?
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: http://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2 Beta 1
> Reporter: Harald Meyer
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
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-162) NPE during schema compilation with extension
Posted by "Harald Meyer (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-162?page=comments#action_12314231 ]
Harald Meyer commented on XMLBEANS-162:
---------------------------------------
It is the BPEL schema: http://schemas.xmlsoap.org/ws/2003/03/business-process/
The errpr does actually happen when XMLBeans tries to report an error. The error here is that extensions are used but their classes are not on the class path. When I comment line 289 in BindingConfigImpl out and replace it by a println I get the following messages:
[java] [JAM] Warning: failed to resolve class org.asg.platform.logic.ParameterLogic
[java] [JAM] Warning: failed to resolve class org.asg.platform.logic.ParameterHandler
[java] 'org.asg.platform.logic.ParameterLogic' must be an interface.
The first two lines are not printed when line 289 is not commented out, and XMLBeans fails when reporting the third line. Maybe StscStack is empty from reporting the warnings?
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: http://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2 Beta 1
> Reporter: Harald Meyer
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
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] Assigned: (XMLBEANS-162) NPE during schema compilation with extension
Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-162?page=all ]
Lawrence Jones reassigned XMLBEANS-162:
---------------------------------------
Assign To: Rajiv Bala (was: Cezar Andrei)
The NPE was fixed with the fix for XMLBEANS-133 (checkin 227480). However there was still a small error where if the class was not on the classpath you would get the error message
'classname' must be an interface
instead of the correct error message:
'classname' not found.
Checkin 327246 fixes that. Passing to Rajiv for test.
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: http://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2 Beta 1
> Reporter: Harald Meyer
> Assignee: Rajiv Bala
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
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] Assigned: (XMLBEANS-162) NPE during schema compilation with
extension
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Danner reassigned XMLBEANS-162:
-------------------------------------
Assignee: Jacob Danner (was: Rajiv Bala)
> NPE during schema compilation with extension
> --------------------------------------------
>
> Key: XMLBEANS-162
> URL: https://issues.apache.org/jira/browse/XMLBEANS-162
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2 Beta 1
> Reporter: Harald Meyer
> Assigned To: Jacob Danner
>
> When no extensions are used, everything works fine. Stack trace:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
> [java] at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
> [java] at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
> [java] at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
> From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org