From ee3820c9ccd9815c31de6af0f72c9d76d3de1368 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 20 Sep 2010 11:01:44 +0000 Subject: [PATCH] more logging for strange "java.lang.NoClassDefFoundError: de/anomic/http/server/RequestHeader" error git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7175 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/server/HTTPDFileHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/http/server/HTTPDFileHandler.java b/source/de/anomic/http/server/HTTPDFileHandler.java index cf17c6beb..164df05ea 100644 --- a/source/de/anomic/http/server/HTTPDFileHandler.java +++ b/source/de/anomic/http/server/HTTPDFileHandler.java @@ -1134,7 +1134,7 @@ public final class HTTPDFileHandler { } } - private static final Method rewriteMethod(final File classFile) { + private static final Method rewriteMethod(final File classFile) throws InvocationTargetException { Method m = null; // now make a class out of the stream try { @@ -1164,11 +1164,12 @@ public final class HTTPDFileHandler { } } catch (final ClassNotFoundException e) { - System.out.println("INTERNAL ERROR: class " + classFile + " is missing:" + e.getMessage()); + Log.logSevere("HTTPDFileHandler", "class " + classFile + " is missing:" + e.getMessage()); + throw new InvocationTargetException(e, "class " + classFile + " is missing:" + e.getMessage()); } catch (final NoSuchMethodException e) { - System.out.println("INTERNAL ERROR: method respond not found in class " + classFile + ": " + e.getMessage()); + Log.logSevere("HTTPDFileHandler", "method 'respond' not found in class " + classFile + ": " + e.getMessage()); + throw new InvocationTargetException(e, "method 'respond' not found in class " + classFile + ": " + e.getMessage()); } - //System.out.println("found method: " + m.toString()); return m; }