jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1079317 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java
Date Tue, 08 Mar 2011 10:53:58 GMT
Author: jukka
Date: Tue Mar  8 10:53:58 2011
New Revision: 1079317

URL: http://svn.apache.org/viewvc?rev=1079317&view=rev
Log:
JCR-2904: Uncaught AbstractMethodError exception in in DomUtil.createFactory()

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.

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java?rev=1079317&r1=1079316&r2=1079317&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/xml/DomUtil.java
Tue Mar  8 10:53:58 2011
@@ -70,7 +70,9 @@ public class DomUtil {
         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;



Mime
View raw message