You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/02/25 01:51:47 UTC
DO NOT REPLY [Bug 17352] New: -
ClassCastException in XMLSchemaLoader.processExternalHints()
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17352>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17352
ClassCastException in XMLSchemaLoader.processExternalHints()
Summary: ClassCastException in
XMLSchemaLoader.processExternalHints()
Product: Xerces2-J
Version: 2.3.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: matt@clickability.com
Some code is bad in processExternalHints:
Object actualValue = attrDecl.fType.validate(sl, null, null);
Object[] uris = (Object[])actualValue;
actualValue is not an Object[], it is: org.apache.xerces.impl.dv.xs.ListDV$ListData
I get this by calling:
parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",
getSchemaLocations());
with a "\n" separated list of schema location URIs
java.lang.ClassCastException
at
org.apache.xerces.impl.xs.XMLSchemaLoader.processExternalHints(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.reset(XMLSchemaValidator.java:1345)
at
org.apache.xerces.parsers.BasicParserConfiguration.reset(BasicParserConfiguration.java:543)
at
org.apache.xerces.parsers.DTDConfiguration.reset(DTDConfiguration.java:640)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:512)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:191)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org