jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r454360 - /jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java
Date Mon, 09 Oct 2006 12:45:02 GMT
Author: mreutegg
Date: Mon Oct  9 05:45:02 2006
New Revision: 454360

URL: http://svn.apache.org/viewvc?view=rev&rev=454360
Log:
JCR-574: MsExcelTextFilter throws Exception. Repository is not startable
- also catch runtime exceptions when initializing the reader. Some text filter implementations
or 3rd party libraries may not behave properly.

Modified:
    jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java

Modified: jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java?view=diff&rev=454360&r1=454359&r2=454360
==============================================================================
--- jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java
(original)
+++ jackrabbit/trunk/textfilters/src/java/org/apache/jackrabbit/core/query/LazyReader.java
Mon Oct  9 05:45:02 2006
@@ -78,10 +78,10 @@
             try {
                 // try to initialize reader
                 initializeReader();
-            } catch (IOException e) {
+            } catch (Throwable t) {
                 log.warn("exception initializing reader " +
-                        getClass().getName() + ": " + e);
-                log.debug("Dump: ", e);
+                        getClass().getName() + ": " + t);
+                log.debug("Dump: ", t);
                 // assign null reader
                 delegate = NULL_READER;
             }



Mime
View raw message