Page 1 of 1

Java null pointer exception on Generating sample XML files

Posted: Mon Jul 20, 2009 8:50 pm
by rsreedh
I have an xsd with multiple imports
<xmlns:ns1: ORDER xmlns:ns2: ADDR xmlns:ns3=NAME>
<import all these namespaces>
For ORDER - It imports again name and address.
<xmlns:ns1: ADDRESS xmlns:ns2=NAME>

When generating an xml for this, this is the error I get. Any suggestions?

[ InstanceGenerator ] - java.lang.NullPointerException
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at ro.sync.xml.generator.c.A(Unknown Source)
at ro.sync.xml.generator.c.A(Unknown Source)
at ro.sync.xml.generator.c.A(Unknown Source)
at ro.sync.xml.generator.c.A(Unknown Source)
at ro.sync.xml.generator.c.A(Unknown Source)
at ro.sync.xml.generator.c.C(Unknown Source)
at ro.sync.xml.generator.X$1.ᆊ(Unknown Source)
at ro.sync.ui.application.B.run(Unknown Source)


Please help ...

Re: Java null pointer exception on Generating sample XML files

Posted: Tue Jul 21, 2009 2:16 pm
by sorin_ristache
Hello,

What is your Oxygen version? Please post a sample XSD schema for reproducing the error.


Regards,
Sorin