As a work around to the below issue, I replaced union tag with list, and tested it for a simple xsd and it worked well. When I did the same for the xsd in my project, it is giving the below exception. Any ideas?
java.lang.NullPointerException at org.jibx.xsd2jibx.NameUtil.trimPrefix(NameUtil.java:213) at org.jibx.xsd2jibx.XsdStructure.getXsdType(XsdStructure.java:100) at org.jibx.xsd2jibx.XsdAttribute.importRef(XsdAttribute.java:38) at org.jibx.xsd2jibx.XsdAttribute.getType(XsdAttribute.java:65) at org.jibx.xsd2jibx.XsdFeature.getFieldQName(XsdFeature.java:87) at org.jibx.xsd2jibx.JSource.newField(JSource.java:171) at org.jibx.xsd2jibx.JSource.newBeanProperty(JSource.java:111) at org.jibx.xsd2jibx.XsdComplexType.processStructure(XsdComplexType.java:383) at org.jibx.xsd2jibx.XsdComplexType.process(XsdComplexType.java:245) at org.jibx.xsd2jibx.Generator.execute(Generator.java:233) at org.jibx.xsd2jibx.Generate.generate(Generate.java:131) at org.jibx.xsd2jibx.Generate.main(Generate.java:182) -----Original Message----- From: Anita [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 10:47 AM To: 'JiBX users' Subject: RE: [jibx-users] Does JiBX uses ADB internally to generate binding classes? Hello, As the below issue became a show-stopper, I am not able to continue any further in my analysis. I appreciate even if anyone can provide some pointers for where to look? Regards, Anita. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anita Sent: Monday, November 26, 2007 12:17 PM To: 'JiBX users' Subject: [jibx-users] Does JiBX uses ADB internally to generate binding classes? Hi, Does JiBX and its corresponding tools (Xsd2JiBX, etc) uses ADB (Axis Data Biding) to generate binding classes? Because, while generating the binding.xml using Xsd2JiBX, it is throwing an exception saying, "Expected "simpleType" end tag, found "union" start tag". While surfing in other forums, I found that it internally uses ADB, which has some known issues regarding the support for xs:union inside xs:simpleType (AXIS2-1093). Interestingly, this issue has been fixed in the latest released version of Axis2 (1.2). I appreciate if anyone can explain, whether there is any solution for the above mentioned problem. Regards, Anita. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users