352046 - Need try/catch around features set in XmlParser

This commit is contained in:
Jan Bartel 2011-07-14 15:50:37 +10:00
parent 2028c125c1
commit 295634a369
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,7 @@
jetty-7.5.0-SNAPSHOT
+ 351516 Refactored sessions to better support nosql session managers
+ 351576 Do not use deprecated method File.toURL()
+ 352046 Need try/catch around features set in XmlParser
jetty-7.4.4.v20110707 July 7th 2011
+ 308851 Converted all jetty-client module tests to JUnit 4

View File

@ -108,9 +108,16 @@ public class XmlParser
_parser.getXMLReader().setFeature("http://xml.org/sax/features/validation", validating);
_parser.getXMLReader().setFeature("http://xml.org/sax/features/namespaces", true);
_parser.getXMLReader().setFeature("http://xml.org/sax/features/namespace-prefixes", false);
try
{
_parser.getXMLReader().setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", validating);
}
catch (Exception e)
{
Log.warn(Log.EXCEPTION, e);
}
}
catch (Exception e)
{
Log.warn(Log.EXCEPTION, e);
throw new Error(e.toString());