Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » NPE during schema validation
NPE during schema validation [message #587487] Tue, 25 May 2004 14:41
test is currently offline testFriend
Messages: 51
Registered: July 2009
I'm putting together some testcases for an XSD based project I'm working
on when I hit a NullPointerException validating a somewhat contrived
schema. I'm not even certain that the schema is valid, but if it isn't I
would have thought that there would be a more meaningful diagnostic than
an NPE so I figured I'd raise it with you guys to see what you think.

Here's my schema:

<schema targetNamespace="http://com/schemas/ACTDIInterface"
<complexType name="CAType">
<element name="el1" type="xsd1:typeRef"/>
<simpleType name="typeRef">
<restriction base="string"/>
<element name="CA" substitutionGroup="xsd1:CA2" abstract="false"
<element name="CA2" ref="xsd1:CA3" abstract="false" />
<element name="CA3" type="xsd1:CAType" abstract="false" />

The problem seems to be related to element CA which has a
substitutionGroup of CA2 which in turn references CA3. This may be an
illegal scenario for all I know.

Here is the exception stack trace:

at org.eclipse.xsd.impl.XSDSchemaImpl.validate(XSDSchemaImpl.ja va:1493)
at ...

Previous Topic:Retrieving user information
Next Topic:NPE during schema validation
Goto Forum:

Current Time: Mon Oct 26 08:27:26 GMT 2020

Powered by FUDForum. Page generated in 0.01972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top