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=17861>. 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=17861 ClassCastException when setting external-schemaLocation properties Summary: ClassCastException when setting external-schemaLocation properties Product: Xerces2-J Version: 2.3.0 Platform: Sun OS/Version: Other Status: NEW Severity: Blocker Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have set an external-schemaLocation property (http://apache.org/xml/properties/schema/external-schemaLocation) to a test value (as per the value in the http://xml.apache.org/xerces2-j/properties.html) document [http://example.com file_name.xsd] This causes a Cast exception (stack Trace below): [Some thoughts at the end] Caused by: java.lang.ClassCastException: org.apache.xerces.impl.dv.xs.ListDV$ListData at org.apache.xerces.impl.xs.XMLSchemaLoader.processExternalHints (XMLSchemaLoader.java:567) 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:253) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse (DocumentBuilderImpl.java:204) at com.thenational.wm.security.SecurityToken.parseToken (SecurityToken.java:346) at com.thenational.wm.security.SecurityToken.setDoc (SecurityToken.java:239) at com.thenational.wm.security.SecurityToken.verifyToken (SecurityToken.java:202) at com.thenational.wm.shape.poc.security.client.SecurityTest.main (SecurityTest.java:78) >From my investigation, this seems to be because the validate routine returns a ListDV.ListData type which is attempted to be cast to an Object[]. It doesn't like this much. I have traced through much of what is happening, and the constructor all seems to be happy - it recognises the two parts of the string etc, and constructs a ListDV.ListData type okay. I was just going to cast it to a ListDV.ListData object to see if that would help, but it isn't accessible from that package. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
