more exception logging

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5561 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent ee3fe19c0b
commit db510b5d52

@ -518,6 +518,8 @@ public final class httpdFileHandler {
e.getTargetException().toString() + ":" +
e.getTargetException().getMessage() +
"; java.awt.graphicsenv='" + System.getProperty("java.awt.graphicsenv","") + "'");
e.printStackTrace();
e.getTargetException().printStackTrace();
targetClass = null;
}
if (img == null) {
@ -1025,6 +1027,7 @@ public final class httpdFileHandler {
} catch (final Exception e) {
try {
// doing some errorhandling ...
e.printStackTrace();
int httpStatusCode = 400;
final String httpStatusText = null;
final StringBuilder errorMessage = new StringBuilder(2000);

@ -99,7 +99,6 @@ public class serverInstantBlockingThread<J extends serverProcessorJob> extends s
e.printStackTrace();
if ((targetException != null) && ((targetException.indexOf("heap space") > 0) || (targetException.indexOf("NullPointerException") > 0))) e.getTargetException().printStackTrace();
Log.logSevere("BLOCKINGTHREAD", "Runtime Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage() + "; target exception: " + targetException, e.getTargetException());
e.getTargetException().printStackTrace();
} catch (final OutOfMemoryError e) {
Log.logSevere("BLOCKINGTHREAD", "OutOfMemory Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage());
e.printStackTrace();

@ -107,6 +107,7 @@ public final class serverInstantBusyThread extends serverAbstractBusyThread impl
} catch (final InvocationTargetException e) {
final String targetException = e.getTargetException().getMessage();
e.printStackTrace();
e.getTargetException().printStackTrace();
Log.logSevere("BUSYTHREAD", "Runtime Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage() + "; target exception: " + targetException, e.getTargetException());
} catch (final OutOfMemoryError e) {
Log.logSevere("BUSYTHREAD", "OutOfMemory Error in serverInstantThread.job, thread '" + this.getName() + "': " + e.getMessage());

Loading…
Cancel
Save