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

External schema location seems broken in 2.3.0

           Summary: External schema location seems broken in 2.3.0
           Product: Xerces2-J
           Version: 2.3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


DOMParser p = ...

p.setFeature(...FEATURE_NAMESPACES..., true);
p.setFeature(...FEATURE_VALIDATION..., true);
p.setFeature(...SCHEMA_SUPPORT..., true);

p.setProperty(...EXTERNAL_SCHEMALOCATION, schema_location);

p.parse(sysid);

results in...

java.lang.ClassCastException: org.apache.xerces.impl.dv.xs.ListDV$ListData
  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)

If i change xercesImpl to xerces-2.2.1.jar external-schema-location works ok,
but using xerces-2.3.0.jar results in the above exception.

The calling code is not changed, only the xerces.jar file.

Please please Mr Sandy Gao, make the external-schema-location property work
again! :-)

mvh KoIE

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to