Skip to content

Commit

Permalink
JCR-2904: Uncaught AbstractMethodError exception in in DomUtil.create…
Browse files Browse the repository at this point in the history
…Factory()

Fix based on a patch by John Langley.

My previous adjustment was incorrect. Catching all Exceptions won't catch thrown Errors. Fixed to better match the original patch.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1079317 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jukka committed Mar 8, 2011
1 parent abca720 commit 3f336df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ private static DocumentBuilderFactory createFactory() {
factory.setCoalescing(true);
try {
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
} catch (Exception e) {
} catch (ParserConfigurationException e) {
log.warn("Secure XML processing is not supported", e);
} catch (AbstractMethodError e) {
log.warn("Secure XML processing is not supported", e);
}
return factory;
Expand Down

0 comments on commit 3f336df

Please sign in to comment.