Sriram Narayanan wrote:
When sending requests to Tomcat during the startup phase, I got a NPE in
the AprEndpoint run method, line 1495:
getPoller().add(socket);
This can happen because in the start method, the pollers are initialized
after the acceptor threads already have been started so that the
getPoller() call can either run into a NPE itself (if the pollers array
is not yet initialized) or return null (if pollers[pollerRoundRobin] is
not yet initialized.
Thus, I think the error can easily be prevented by starting the
acceptors after initializing the pollers.
Yes, there's no reason to start the accept thread first.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]