You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Scott Hinkelman <sr...@us.ibm.com> on 2005/08/05 20:21:00 UTC

NullPointerException when compiling with static handler feature

Hi,
I am getting a NullPointerException when trying to use the handler
extension feature in V2.
Using the 2 pass process per the wiki, I am sure the interface and the
handler are on the class path, however I get the same problem
with or without the classpath having them. Any help?

xsdconfig snip:
 <xb:extension
for="com.ibm.xml.namespaces.industry.medical.medbiquitous.professionalprofile.xmlbeans.MembersType">
        <xb:interface name="com.ibm.industryobjects.IndustryObject">

<xb:staticHandler>com.ibm.industryobjects.IndustryObjectStaticHandler</xb:staticHandler>
        </xb:interface>
</xb:extension>

Loading schema file member.xsd
Loading config file .\memberconfig.xsdconfig
Exception in thread "main" java.lang.NullPointerException
        at
org.apache.xmlbeans.impl.schema.StscState.get(StscState.java:1213)
        at
org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
        at
org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateMethod(InterfaceExtensionImpl.java:167)
        at
org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateMethods(InterfaceExtensionImpl.java:113)
        at
org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:58)
        at
org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
        at
org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
        at
org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)

thanks,

Scott

------------
Scott R. Hinkelman, Senior Software Engineer
IBM Software Group / Emerging Technologies
Cross-Industry Foundation Standards Strategy
Office: 512.823.8097 (TL 793.8097)
Cell: 512.415.8490


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org