All source generator functions seem to be broken in the latest Castor CVS
version. I rolled back my CVS to 3/27/2002 and the problems went away.
With the latest version in the CVS, I get this error on even the most
trivial of schemas:
***
Exception in thread "main" java.lang.NullPointerException
at
org.exolab.castor.builder.SourceFactory.createPropertyChangeMethods(SourceFa
ctory.java:856)
at
org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:
345)
at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:781)
at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:726)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:361)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:419)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:448)
at
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:672)
***
Here is the schema I used as a test case:
***
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="Foo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
***
And finally, here are all of the files from the xml package that were
updated in my last "cvs update", so the problem is almost certainly in one
of these:
***
P castor/src/main/org/exolab/castor/xml/Introspector.java
P castor/src/main/org/exolab/castor/xml/schema/ComplexType.java
P castor/src/main/org/exolab/castor/xml/schema/ElementDecl.java
U castor/src/main/org/exolab/castor/xml/schema/Group.java
P castor/src/main/org/exolab/castor/xml/schema/Schema.java
P castor/src/main/org/exolab/castor/xml/schema/SimpleType.java
P castor/src/main/org/exolab/castor/xml/schema/TypeReference.java
P castor/src/main/org/exolab/castor/xml/schema/XMLType.java
P castor/src/main/org/exolab/castor/xml/schema/reader/SchemaReader.java
***
Jeff
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev