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/03/25 11:19:17 UTC

DO NOT REPLY [Bug 18310] New: - external-schemaLocation failure

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=18310>.
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=18310

external-schemaLocation failure

           Summary: external-schemaLocation failure
           Product: Xerces2-J
           Version: 2.3.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: battle@hp.com


Recurrence of problem (fixed in 2.2.1) with loading external schema (with 
namespace)

DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setProperty("http://apache.org/xml/properties/schema/external-
schemaLocation", ns+" "+schema);
parser.parse(filename);

The above code has been verified to work under Xerces 2.2.1. Under 2.3.0 the 
following exception is raised.

java.lang.ClassCastException
	at org.apache.xerces.impl.xs.XMLSchemaLoader.processExternalHints
(Unknown Source)
	at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown Source)
	at org.apache.xerces.parsers.BasicParserConfiguration.reset(Unknown 
Source)
	at org.apache.xerces.parsers.DTDConfiguration.reset(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

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