|NPE during schema validation [message #587487]
||Tue, 25 May 2004 10:41
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:
<element name="el1" type="xsd1:typeRef"/>
<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)
Powered by FUDForum
. Page generated in 0.01955 seconds