Skip to content

Commit

Permalink
JCR-2873: Add a way to locate full text extraction problems
Browse files Browse the repository at this point in the history
Ignore problems caused by missing extraction libraries.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1085050 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jukka committed Mar 24, 2011
1 parent 25058ab commit e25b054
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,14 @@ public void run() {
} 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"
Expand Down

0 comments on commit e25b054

Please sign in to comment.