cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r659656 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
Date Fri, 23 May 2008 20:55:15 GMT
Author: bimargulies
Date: Fri May 23 13:55:14 2008
New Revision: 659656

URL: http://svn.apache.org/viewvc?rev=659656&view=rev
Log:
Try again to catch enough exceptions.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java?rev=659656&r1=659655&r2=659656&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java Fri
May 23 13:55:14 2008
@@ -78,7 +78,7 @@
             Class<?> cls = Class.forName("com.ctc.wstx.sax.WstxSAXParserFactory");
             saxParserFactory = (SAXParserFactory)cls.newInstance();
             nsasaxParserFactory = (SAXParserFactory)cls.newInstance();
-        } catch (Exception e) {
+        } catch (Throwable e) {
             //woodstox not found, use any other Stax parser
             saxParserFactory = SAXParserFactory.newInstance();
             nsasaxParserFactory = SAXParserFactory.newInstance();
@@ -88,7 +88,7 @@
             nsasaxParserFactory.setFeature("http://xml.org/sax/features/namespaces", true);

             nsasaxParserFactory.setFeature("http://xml.org/sax/features/namespace-prefixes",

                                            true);
-        } catch (Exception e) {
+        } catch (Throwable e) {
             //ignore
         }
     }
@@ -126,7 +126,7 @@
         DocumentBuilderFactory factory = super.createDocumentBuilderFactory(validationMode,
namespaceAware);
         try {
             factory.setFeature("http://apache.org/xml/features/dom/defer-node-expansion",
false);
-        } catch (Exception e) {
+        } catch (Throwable e) {
             // we can get all kinds of exceptions from this
             // due to old copies of Xerces and whatnot.
         }



Mime
View raw message