jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1085050 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
Date Thu, 24 Mar 2011 17:44:57 GMT
Author: jukka
Date: Thu Mar 24 17:44:56 2011
New Revision: 1085050

URL: http://svn.apache.org/viewvc?rev=1085050&view=rev
Log:
JCR-2873: Add a way to locate full text extraction problems

Ignore problems caused by missing extraction libraries.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java?rev=1085050&r1=1085049&r2=1085050&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
Thu Mar 24 17:44:56 2011
@@ -176,7 +176,14 @@ public class LazyTextExtractorField exte
                 } finally {
                     stream.close();
                 }
+            } catch (LinkageError e) {
+                // Capture and ignore errors caused by extraction libraries
+                // not being present. This is equivalent to disabling
+                // selected media types in configuration, so we can simply
+                // ignore these errors.
             } catch (Throwable t) {
+                // Capture and report any other full text extraction problems.
+                // The special STOP exception is used for normal termination.
                 if (t != STOP) {
                     log.debug("Failed to extract text from a binary property."
                             + " This is a fairly common case, and nothing to"



Mime
View raw message