Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums
-
nullException
https://www.eclipse.org/forums/index.php/mv/msg/11856/36866/#msg_36866
Originally posted by: niemaz.xrce.xerox.com
I'm getting a nullException exception when loading a particular schema
file.
After investigating, it appears that it crashes on restricted enumerations
based on xs:positiveInteger. See xsd code below.
--mike
<xs:attribute name="layer">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:element name="root">
<xs:complexType>
<xs:attribute ref="layer"/>
</xs:complexType>
</xs:element>]]>
2004-01-30T12:47:33-00:00
-
Re: nullException
https://www.eclipse.org/forums/index.php/mv/msg/11856/36934/#msg_36934
Originally posted by: merks.ca.ibm.com
--------------E7DFBC8757621574A8A5840F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mike,
Your example doesn't use positiveInteger and even if I change it and build a
complete schema like this:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema ">
<xs:attribute name="layer">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:element name="root">
<xs:complexType>
<xs:attribute ref="layer"/>
</xs:complexType>
</xs:element>
</xs:schema>
I can't reprodue a null pointer exception.
mike wrote:
> I'm getting a nullException exception when loading a particular schema
> file.
> After investigating, it appears that it crashes on restricted enumerations
> based on xs:positiveInteger. See xsd code below.
>
> --mike
>
> <xs:attribute name="layer">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="1"/>
> <xs:enumeration value="2"/>
> <xs:enumeration value="3"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
>
> <xs:element name="root">
> <xs:complexType>
> <xs:attribute ref="layer"/>
> </xs:complexType>
> </xs:element>
--------------E7DFBC8757621574A8A5840F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Mike,
<p>Your example doesn't use positiveInteger and even if I change it and
build a complete schema like this:
<blockquote><?xml version="1.0" encoding="UTF-8"?>
<br><xs:schema xmlns:xs="<A HREF="http://www.w3.org/2001/XMLSchema ">http://www.w3.org/2001/XMLSchema </A>">
<br><xs:attribute name="layer">
<br> <xs:simpleType>
<br> <xs:restriction base="xs:positiveInteger">
<br> <xs:enumeration value="1"/>
<br> <xs:enumeration value="2"/>
<br> <xs:enumeration value="3"/>
<br> </xs:restriction>
<br> </xs:simpleType>
<br></xs:attribute>
<p><xs:element name="root">
<br> <xs:complexType>
<br> <xs:attribute ref="layer"/>
<br> </xs:complexType>
<br></xs:element>
<br></xs:schema></blockquote>
I can't reprodue a null pointer exception.
<br>
<p>mike wrote:
<blockquote TYPE=CITE>I'm getting a nullException exception when loading
a particular schema
<br>file.
<br>After investigating, it appears that it crashes on restricted enumerations
<br>based on xs:positiveInteger. See xsd code below.
<p>--mike
<p><xs:attribute name="layer">
<br> <xs:simpleType>
<br> <xs:restriction base="xs:string">
<br> <xs:enumeration value="1"/>
<br> <xs:enumeration value="2"/>
<br> <xs:enumeration value="3"/>
<br> </xs:restriction>
<br> </xs:simpleType>
<br></xs:attribute>
<p><xs:element name="root">
<br> <xs:complexType>
<br> <xs:attribute ref="layer"/>
<br> </xs:complexType>
<br></xs:element></blockquote>
</html>
--------------E7DFBC8757621574A8A5840F--]]>
2004-01-30T13:34:33-00:00
-
Re: nullException
https://www.eclipse.org/forums/index.php/mv/msg/11856/583323/#msg_583323
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mike,
Your example doesn't use positiveInteger and even if I change it and build a
complete schema like this:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema ">
<xs:attribute name="layer">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:element name="root">
<xs:complexType>
<xs:attribute ref="layer"/>
</xs:complexType>
</xs:element>
</xs:schema>
I can't reprodue a null pointer exception.
mike wrote:
> I'm getting a nullException exception when loading a particular schema
> file.
> After investigating, it appears that it crashes on restricted enumerations
> based on xs:positiveInteger. See xsd code below.
>
> --mike
>
> <xs:attribute name="layer">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="1"/>
> <xs:enumeration value="2"/>
> <xs:enumeration value="3"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
>
> <xs:element name="root">
> <xs:complexType>
> <xs:attribute ref="layer"/>
> </xs:complexType>
> </xs:element>
--------------E7DFBC8757621574A8A5840F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Mike,
<p>Your example doesn't use positiveInteger and even if I change it and
build a complete schema like this:
<blockquote><?xml version="1.0" encoding="UTF-8"?>
<br><xs:schema xmlns:xs="<A HREF="http://www.w3.org/2001/XMLSchema ">http://www.w3.org/2001/XMLSchema </A>">
<br><xs:attribute name="layer">
<br> <xs:simpleType>
<br> <xs:restriction base="xs:positiveInteger">
<br> <xs:enumeration value="1"/>
<br> <xs:enumeration value="2"/>
<br> <xs:enumeration value="3"/>
<br> </xs:restriction>
<br> </xs:simpleType>
<br></xs:attribute>
<p><xs:element name="root">
<br> <xs:complexType>
<br> <xs:attribute ref="layer"/>
<br> </xs:complexType>
<br></xs:element>
<br></xs:schema></blockquote>
I can't reprodue a null pointer exception.
<br>
<p>mike wrote:
<blockquote TYPE=CITE>I'm getting a nullException exception when loading
a particular schema
<br>file.
<br>After investigating, it appears that it crashes on restricted enumerations
<br>based on xs:positiveInteger. See xsd code below.
<p>--mike
<p><xs:attribute name="layer">
<br> <xs:simpleType>
<br> <xs:restriction base="xs:string">
<br> <xs:enumeration value="1"/>
<br> <xs:enumeration value="2"/>
<br> <xs:enumeration value="3"/>
<br> </xs:restriction>
<br> </xs:simpleType>
<br></xs:attribute>
<p><xs:element name="root">
<br> <xs:complexType>
<br> <xs:attribute ref="layer"/>
<br> </xs:complexType>
<br></xs:element></blockquote>
</html>
--------------E7DFBC8757621574A8A5840F--]]>
Ed Merks
2004-01-30T13:34:33-00:00