Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Tomcat 6.0.13 - NPE in AprEndpoint run method

Reich, Matthias

2007-07-18

Replies:


Hi,

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.

Regards,
Matthias

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.