Hi Arnaud, I am seing the same problem as Wei. I checked out the code base this morning and created the jar - so I guess the problem still exists with the latest CVS version.
Abhideep -----Original Message----- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Retrieving earlier version from CVS? Hi Wei, Can you please check with the latest CVS version and let us know if the problem is still there? Arnaud > -----Original Message----- > From: Wei Chiang [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 11:01 AM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Retrieving earlier version from CVS? > > Hi, > > I down loaded the source code from the CVS repository about 8 hours ago. > One of the xsd files causes the SourceGenerator to crash, although it was > OK > with the earlier version. Also, some of the generated code has an > erroneous > ";" inside a pair of "()". > > I no longer have the version which works. The official release does not > work > with my schema, since it does not generate inheritance properly. Is there > a > CVS tag that refers to an earlier version of castor? This way I can > continue > developing the code while the problem is being looked into. > > The output from the SourceGenerator and the related schema are included > below. > The scheme that relates to the erroneous ";" is included at the end. > > I'll be grateful if someone can point out the problem areas in the xsd > files, even though they are OK with the previous versions of castor. > > Thank you, > Wei > ======================================================================== == > == > ====== > > Exception in thread "main" java.lang.NullPointerException > at org.exolab.castor.builder.ClassInfo.getElementField(Unknown > Source) > at org.exolab.castor.builder.SourceFactory.handleField(Unknown > Source) > at > org.exolab.castor.builder.SourceFactory.processContentModel(Unknown > Source) > at > org.exolab.castor.builder.SourceFactory.processContentModel(Unknown > Source) > at > org.exolab.castor.builder.SourceFactory.processComplexType(Unknown Source) > at > org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown > Source) > at > org.exolab.castor.builder.SourceGenerator.processComplexType(Unknown > Source) > at org.exolab.castor.builder.SourceGenerator.createClasses(Unknown > Source) > at > org.exolab.castor.builder.SourceGenerator.generateSource(Unknown > Source) > at > org.exolab.castor.builder.SourceGenerator.generateSource(Unknown > Source) > at > org.exolab.castor.builder.SourceGenerator.generateSource(Unknown > Source) > at org.exolab.castor.builder.SourceGenerator.main(Unknown Source) > > > <?xml version="1.0" encoding="UTF-8"?> > <xs:schema targetNamespace="http://www.coba.org/geometry" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:geo="http://www.coba.org/geometry" > xmlns:cmn="http://www.coba.org/common" elementFormDefault="qualified" > attributeFormDefault="unqualified"> > <xs:import namespace="http://www.coba.org/common" > schemaLocation="./Common.xsd"/> > <xs:simpleType name="dimension_count"> > <xs:restriction base="xs:integer"> > <xs:minInclusive value="1"/> > </xs:restriction> > </xs:simpleType> > <xs:complexType name="length_measure"> > <xs:sequence> > <xs:element name="length" type="xs:decimal" > minOccurs="0" > maxOccurs="unbounded"/> > </xs:sequence> > </xs:complexType> > <xs:complexType name="geometric_representation_item"> > <xs:complexContent> > <xs:extension base="cmn:representation_item"> > <xs:attribute name="dimension" > type="geo:dimension_count"/> > </xs:extension> > </xs:complexContent> > </xs:complexType> > <xs:complexType name="point"> > <xs:complexContent> > <xs:extension base="geo:geometric_representation_item"/> > </xs:complexContent> > </xs:complexType> > <xs:complexType name="cartesian_point"> > <xs:complexContent> > <xs:extension base="geo:point"> > <xs:sequence> > <xs:element name="Coordinates" > type="geo:length_measure"/> > </xs:sequence> > </xs:extension> > </xs:complexContent> > </xs:complexType> > <xs:complexType name="placement"> > <xs:complexContent> > <xs:extension base="geo:geometric_representation_item"> > <xs:sequence> > <xs:element name="PlacementLocation" > type="geo:cartesian_point"/> > </xs:sequence> > </xs:extension> > </xs:complexContent> > </xs:complexType> > </xs:schema> > > ======================================================================== == > == > ====== > > <?xml version="1.0" encoding="UTF-8"?> > <!-- edited with XML Spy v4.0.1 U (http://www.xmlspy.com) by Wei Chiang > (private) --> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <xs:annotation> > <xs:documentation>XML Schema simpleType Definition of COBA > construct > types.</xs:documentation> > </xs:annotation> > <xs:simpleType name="categoriesOfOGEL"> > <xs:annotation> > <xs:documentation>The kind of OGELs that are > supported.</xs:documentation> > </xs:annotation> > <xs:restriction base="xs:string"> > <xs:enumeration value="ROOM"/> > <xs:enumeration value="BUILDING"/> > <xs:enumeration value="ESTATE"/> > <xs:enumeration value="SPACE"/> > </xs:restriction> > > </xs:simpleType> > > </xs:schema> > > > public Building() { > super(); > >>>>> > setCode(org.coba.simpleApp.generated.types.CategoriesOfOGEL.valueOf("BUI LD > IN > G");); > > _items = new Vector(); > } //-- org.coba.simpleApp.generated.Building() > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
