You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Lachlan Paterson <la...@post.com> on 2004/07/13 23:30:09 UTC

ClassCastException in 2.6.2

(I think my first post bounced, I'll try again)

I am using Xerces-J 2.6.2 (I checked this with org.apache.xerces.impl.Version) and the latest JDOM release (Beta 10 Release Candidate 1). I have a problem that might be related to or duplicate of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16528 

My problem is that if I try to parse & validate against a schema, after setting the external-schemaLocation property, I get this exception:

java.lang.ClassCastException
	at org.apache.xerces.impl.xs.XMLSchemaLoader.reset(Unknown Source)
	at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.configurePipeline(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:455)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:809)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:788)

I do not get that exception if I set the external-schemaLocation to point to a garbage address. Has anyone else run into this?
-Lachlan

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org