Hi Jirka, Looks like a JiBX bug to me. Using the same schema file name in different directories should be legal, and JiBX needs to handle this. Please create a Jira and I'll make sure it's fixed for 1.2.2.
Thanks, - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Jiří Kotal wrote: > I investigated the problem further and found that the issue is in the schema > named USLocalizations.xsd, which exists multiple times in the directory > structure of HR-XML schemas: > > HR-XML-2_5/Indicative/US/USLocalizations.xsd > HR-XML-2_5/CPO/US/USLocalizations.xsd > > It looks like CodeGen can't distinguish between these two schemas. When I > renamed one schema file (and corrected import of this renamed schema) CodeGen > generated bindings successfully. > > I don't know if this is problem of CodeGen or problem in HR-XML (I would say > the > first possibility). So my question is: shell I raise a new Jira issue? > > Jirka > > >> Hi, >> >> I need to work with HR-XML schemas (download here: >> http://ns.hr-xml.org/AllHRXML/200704/HRXML200704.zip). When I generate >> binding >> with CodeGen for schema HR-XML-2_5/Indicative/IndicativeData.xsd I get the >> exception: >> >> Exception in thread "main" java.lang.NullPointerException >> at org.jibx.schema.codegen.CodeGen.applyAndNormalize(CodeGen.java:610) >> at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1646) >> >> I don't use any customization yet. I'm able to run CodeGen successfuly on >> some >> other schemas (e.g. HR-XML-2_5/TimeCard/TimeCard.xsd). >> >> Does anybody know where the problem is? >> >> Thank's >> >> Jirka >> >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> jibx-users mailing list >> jibx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jibx-users >> >> >> > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users