The upcoming 1.0 RC0 will give better reporting on the null pointer exceptions like this. It looks like you've got something going wrong while handling a schema include. I don't really understand what you're seeing here, though, since I thought the classes involved were only used for unmarshalling (not for marshalling).

I'll finally do an updated release of Xsd2Jibx following the RC0 release, and it's possible that will help.

 - Dennis

babloosony wrote:

Hi All,

Can anyone please tell me why do I get this exception when I try to
run xsd2jibx tool :

java.lang.NullPointerException
        at 
org.jibx.runtime.impl.UTF8StreamWriter.writeAttributeText(UTF8StreamWriter.java:181)
        at 
org.jibx.runtime.impl.XMLWriterBase.addAttribute(XMLWriterBase.java:338)
        at 
org.jibx.runtime.impl.MarshallingContext.attribute(MarshallingContext.java:488)
        at 
org.jibx.xsd2jibx.XsdInclude.JiBX_xsd_marshalAttr_1_0(XsdInclude.java)
        at org.jibx.xsd2jibx.JiBX_xsdXsdInclude_access.marshal()
        at org.jibx.xsd2jibx.JiBX_MungeAdapter.JiBX_xsd_marshal_1_4()
        at org.jibx.xsd2jibx.XsdSchema.JiBX_xsd_marshal_1_0(XsdSchema.java)
        at org.jibx.xsd2jibx.JiBX_xsdXsdSchema_access.marshal()
        at org.jibx.xsd2jibx.XsdSchema.marshal(XsdSchema.java)
        at 
org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingContext.java:919)
        at 
org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:967)
        
        
        
Thanks & Regards,
Kumar.


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users





-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to