Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, Sun JDK 1.5, running inside Eclipse
-
Testcase included:yes
-
Number of attachments :
Description
When you add a handler for the request log, it prevents the server from stopping when server.stop() is called. The server stops serving requests, but the JVM does not terminate. There's probably a thread hanging out there someplace. Here is a simple test case to reproduce the problem.
public static void main(String[] args) throws Exception {
Server server = new Server();
RequestLogHandler requestLogHandler = new RequestLogHandler();
NCSARequestLog requestLog = new NCSARequestLog("/temp/yyyy_mm_dd.request.log");
requestLogHandler.setRequestLog(requestLog);
HandlerCollection handlers = new HandlerCollection();
// comment out this line and the problem goes away
handlers.setHandlers(new Handler[]
);
server.setHandler(handlers);
server.start();
// the server stops serving requests, but it does not terminate the JVM.
server.stop();
}
Chirs
can you please attach the stacktraces for this
thanks
bong