Hi Luca,

I restructured the namespace and prefix handling code recently, to fix 
some subtle problems from the 1.2.1 release. Obviously I didn't get 
everything right... It looks like the problem is with non-namespaced 
schemas - I need to add one as a test case to prevent this sort of thing 
from happening again.

  - 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



Luca Buraggi wrote:
> Hi,
> I've got the following exception wher running codegen (version 1.2.2 
> CVS Snapshot 20090617) on the XSD file included.
> ---
> Loaded and validated 1 specified schema(s):
> top-level schema plan_nsb.xsd
> ERROR model.BindingOrganizer - No-namespace namespace must be element 
> default
> Exception in thread "main" java.lang.IllegalArgumentException: 
> Internal error - no-namespace namespace must be element default
>        at 
> org.jibx.binding.model.BindingOrganizer.addBinding(BindingOrganizer.java:136) 
>
>        at 
> org.jibx.schema.codegen.CodeGen.initializeBindings(CodeGen.java:1565)
>        at org.jibx.schema.codegen.CodeGen.generate(CodeGen.java:1654)
>        at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:2189)
> ---
>
> This is not the only XSD file causing codegen to crash, I have many 
> others. I can't figure out what is wrong in these files ...
> Reproducing the crash should be very easy, just run the following 
> command in the examples\codegen folder:
>
> java -cp ../../lib/jibx-tools.jar org.jibx.schema.codegen.CodeGen 
> ms_nsb.xsd
>
> I am using the CVS snapshot because I'm trying to solve a problem 
> reported in the thread "How to customize the super class of the 
> generated classes with CodeGen ?" of this list.
> Dennis kindly suggested me to download the snapshot to fix a class 
> decorator problem.
>
> Thanks a lot for any help or suggestion.
>
> Luca Buraggi
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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

Reply via email to