[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]