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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="CEN">
<xs:element name="CENMS">
<xs:complexType>
<xs:sequence>
<xs:element name="WI" type="WIType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="FILEDATE" type="xs:date" use="required"/>
<xs:attribute name="VERSION" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:complexType name="WIType">
<xs:sequence>
<xs:element name="FACT" type="FACTType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="WIID" type="xs:int" use="required"/>
</xs:complexType>
<xs:complexType name="FACTType">
<xs:sequence>
<xs:element name="LEVEL" type="xs:int"/>
<xs:element name="SEQ" type="xs:int"/>
<xs:element name="SC" type="xs:string" minOccurs="0"/>
<xs:element name="PARID" type="xs:string" minOccurs="0"/>
<xs:element name="RESVER" type="xs:string" minOccurs="0"/>
<xs:element name="REAL" type="xs:date" minOccurs="0"/>
<xs:element name="TBPLAN" type="xs:date" minOccurs="0"/>
<xs:element name="OP" type="xs:date" minOccurs="0"/>
<xs:element name="FIXED" type="xs:int" minOccurs="0"/>
<xs:element name="PHASEID" type="xs:string" minOccurs="0"/>
<xs:element name="PROC" type="xs:string" minOccurs="0"/>
<xs:element name="EVENTID" type="xs:string" minOccurs="0"/>
<xs:element name="MSFLAG" type="xs:string"/>
<xs:element name="RESRESP" type="RESRESPType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="FACTID" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="RESRESPType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="email" type="xs:string" use="optional"/>
<xs:attribute name="tel" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
------------------------------------------------------------------------------
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