-
Notifications
You must be signed in to change notification settings - Fork 1
NullPointerException with -Xverification #1
Description
when i run ant on build_configuration_test.xml the following
trace is displayed in my dos windows :
Buildfile: build_configuration_test.xml
compile:
Compiling the schema...
Compiling file:/D:/javadev/jaxb/jobs/xml/configuration_test.xsd
Writing output to D:\javadev\jaxb\jobs\gen-src
BUILD FAILED
D:\javadev\jaxb\jobs\xml\build_configuration_test.xml:32:
java.lang.NullPointerException
the line number 32 corresponds to the beginning of the following
instruction of build_configuration_test.xml :
here is the content of build_configuration_test.xml :
This sample application demonstrates how to modify a java content tree and marshal it back to XML data.<!-compile Java source files->
the xsd file looks as follows :
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="1.0">
xsd:annotation
xsd:appinfo
<jaxb:globalBindings generateIsSetMethod="true">
<xjc:serializable uid="12343"/>
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="ParamsData" type="ParamsDataType"/>
<xsd:complexType name="ParamsDataType">
xsd:all
<xsd:element name="Display" type="Display" />
<xsd:element name="MediaTypeBroadcast" type="MediaTypeBroadcast"
minOccurs="0" maxOccurs="1"/>
<xsd:element name="DefaultObjectColorTab" type="DefaultObjectColorTab"
minOccurs="0" maxOccurs="1"/>
</xsd:all>
<xsd:attribute name="acrobatpath" type="xsd:string" />
<xsd:attribute name="webexplorercmd" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="Display">
xsd:annotation
xsd:appinfo
<jaxb:class
implClass="meteorage.jobs.params.paramsdataextend.DisplayEx" />
</xsd:appinfo>
</xsd:annotation>
xsd:sequence
<xsd:element name="ParseDate" type="ParseDate"/>
</xsd:sequence>
<xsd:attribute name="timezone" type="xsd:string" default="UTC"/>
</xsd:complexType>
<xsd:complexType name="ParseDate">
xsd:sequence
<xsd:element name="DateFormat" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MediaTypeBroadcast">
xsd:sequence
<xsd:element name="Serial" type="Serial" minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="tcpendofline" type="xsd:string" default=""/>
<xsd:attribute name="fileendofline" type="xsd:string" default=""/>
<xsd:attribute name="serialendofline" type="xsd:string" default=""/>
<xsd:attribute name="maxfilesize" type="xsd:int" default="1000000"/>
<xsd:attribute name="serialtimeout" type="xsd:int" default="5"/>
<xsd:attribute name="fileopenmode" type="fileopenmodeType"/>
<xsd:attribute name="alarmformat" type="alarmformatType"/>
</xsd:complexType>
<xsd:complexType name="Serial">
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="baudrate" type="xsd:int" use="required"/>
<xsd:attribute name="flowcontrolout" type="flowcontrolType"/>
<xsd:attribute name="flowcontrolin" type="flowcontrolType"/>
<xsd:attribute name="databits" type="xsd:int" use="required"/>
<xsd:attribute name="stopbits" type="xsd:int" use="required"/>
<xsd:attribute name="parity" type="parityType" use="required"/>
</xsd:complexType>
<xsd:simpleType name="fileopenmodeType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CREATE"/>
<xsd:enumeration value="APPEND"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="alarmformatType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="FIXED"/>
<xsd:enumeration value="VARIABLE"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="flowcontrolType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="NONE"/>
<xsd:enumeration value="RTSCTS_OUT"/>
<xsd:enumeration value="XONXOFF_OUT"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="parityType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="NONE"/>
<xsd:enumeration value="EVEN"/>
<xsd:enumeration value="ODD"/>
<xsd:enumeration value="MARK"/>
<xsd:enumeration value="SPACE"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="DefaultObjectColorTab">
xsd:sequence
<xsd:element name="DefaultObjectColor" type="DefaultObjectColor"
minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DefaultObjectColor">
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="r" type="xsd:float" use="required"/>
<xsd:attribute name="g" type="xsd:float" use="required"/>
<xsd:attribute name="b" type="xsd:float" use="required"/>
</xsd:complexType>
</xsd:schema>
Environment
Operating System: Windows XP
Platform: PC
Affected Versions
[current]