- undo less 'binary data found'

- removed duplicate stackTrace


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4643 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
danielr 17 years ago
parent 96cce8bed9
commit 7c149a4ee8

@ -491,7 +491,8 @@ public final class htmlFilterWriter extends Writer {
private static boolean binaryHint(char c) { private static boolean binaryHint(char c) {
// space, punctiation and symbols, letters and digits (ASCII/latin) // space, punctiation and symbols, letters and digits (ASCII/latin)
if (c >= 31 && c < 128) return false; //if (c >= 31 && c < 128) return false;
if(c >= 31) return false;
// 8 = backspace // 8 = backspace
// 9 = horizontal tab // 9 = horizontal tab
// 10 = new line (line feed) // 10 = new line (line feed)

@ -126,9 +126,7 @@ public final class serverInstantBusyThread extends serverAbstractBusyThread impl
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
String targetException = e.getTargetException().getMessage(); String targetException = e.getTargetException().getMessage();
e.printStackTrace(); e.printStackTrace();
if ((targetException != null) && ((targetException.indexOf("heap space") > 0) || (targetException.indexOf("NullPointerException") > 0))) e.getTargetException().printStackTrace();
serverLog.logSevere("BUSYTHREAD", "Runtime Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage() + "; target exception: " + targetException, e.getTargetException()); serverLog.logSevere("BUSYTHREAD", "Runtime Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage() + "; target exception: " + targetException, e.getTargetException());
e.getTargetException().printStackTrace();
} catch (OutOfMemoryError e) { } catch (OutOfMemoryError e) {
serverLog.logSevere("BUSYTHREAD", "OutOfMemory Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage()); serverLog.logSevere("BUSYTHREAD", "OutOfMemory Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage());
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save