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 Paul Hammant <Pa...@ubiquity.be> on 2000/10/26 10:32:51 UTC
Bug in SaxParser.parse()
If an XML document is passed in that refers to a missing DTD, then
parse() returns....
java.net.ConnectException: Connection refused: no further
information
This is very confusing and took me a long time to debug. It would be
better if parse() were able to communicate something like.....
Unable to retrieve DTD (encapsulated exception
"java.net.ConnectException: Connection refused: no further information")
.... as ConnectException is very ambiguous, though quite technically
accurate.
Regards,
- Paul H