Hello,
I am getting a null pointer exception when running the SourceGenerator. I have
included the command line, exception and schema below.
Regards,
sam
$ java org.exolab.castor.builder.SourceGenerator -dest src/java -verbose -
package net.3zero3.data -i ../../../myproject/schemas/base.xsd
Exception in thread "main" java.lang.NullPointerException
at org.exolab.castor.xml.schema.AttributeDecl.getSimpleType
(AttributeDecl.java:152)
at org.exolab.castor.builder.SourceFactory.processComplexType
(SourceFactory.java:1250)
at org.exolab.castor.builder.SourceFactory.createSourceCode
(SourceFactory.java:391)
at org.exolab.castor.builder.SourceGenerator.processComplexType
(SourceGenerator.java:758)
at org.exolab.castor.builder.SourceGenerator.createClasses
(SourceGenerator.java:684)
at org.exolab.castor.builder.SourceGenerator.generateSource
(SourceGenerator.java:323)
at org.exolab.castor.builder.SourceGenerator.generateSource
(SourceGenerator.java:381)
at org.exolab.castor.builder.SourceGenerator.generateSource
(SourceGenerator.java:410)
at org.exolab.castor.builder.SourceGenerator.main
(SourceGenerator.java:637)
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace="base" xmlns="base"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="phoneAttribType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction
base="xsd:string">
<xsd:enumeration
value="MOBILE"/>
<xsd:enumeration
value="HOME"/>
<xsd:enumeration
value="OFFICE"/>
<xsd:enumeration
value="UNKNOWN"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="phoneType">
<xsd:annotation>
<xsd:documentation>Attribute:type; Restricted to +44(0)
123456789</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="phoneAttribType">
<xsd:pattern value="\+\d+\(0\)\d+"/>
<xsd:attribute name="type" use="required"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>
----------------------------------------------------------
This message was sent using http://uk2.net
NEWS - CHEAPEST DEDICATED SERVERS IN THE WORLD - 25/month
FREE UK DIAL 0845 609 1370 - username uk2: - password: uk2
UK's FREE Domains, FREE Dialup, FREE Webdesign, FREE email
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev