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; }