users@glassfish.java.net

NullpointerException in SelectorThread class

From: Leonid Mokrushin <leonid.mokrushin_at_ericsson.com>
Date: Mon, 15 Dec 2008 16:02:27 +0100

At an arbitrary time while running a Comet application, the following
exception is thrown and the port 8080 dies:

SEVERE: WEB0756: Caught exception during HTTP processing.
java.lang.NullPointerException
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(Selecto
rThread.java:1374)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(Se
lectorThread.java:1295)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(Se
lectorThread.java:1258)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThre
ad.java:1234)

The interesting thing is that the exception is thrown inside the
exception handler in SelectorThread class. This behavior has been
observed in Glassfish v2.1 builds b54 and b60 on WinXP, Ubuntu and Mac
OS X Leopard with jdk 1.6.0_10, 1.6.0_07 and 1.6.0_05 correspondingly.

/Leonid