geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan (JIRA)" <>
Subject [jira] Closed: (GERONIMO-2766) cannot restart a tomcat http connector from the console
Date Fri, 02 Feb 2007 05:02:05 GMT


Paul McMahan closed GERONIMO-2766.

    Resolution: Won't Fix

The NullPointerException occurs when a connector has been stopped but its socket has not closed
yet.  While the socket is still open any request it receives will be processed by the orphaned
connector which has been stopped and removed from its container, resulting in the NPE.  The
socket usually closes immediately but sometimes it lingers for a few seconds.

Geronimo could avoid this NPE by not removing a connector from its container when the connector
is stopped.  But that would require adding the connector to the container in the connector's
constructor, making it impossible to create a connector without automatically adding it to
the container.  It is safer to add the connector to the container when the connector is explicitly
started, and remove the connector from the container when the connector is stopped.  This
is the current behavior in geronimo, which after making this investigation I think should
remain intact despite the possibility of allowing a harmless NPE during the small time widow
before the socket closes.

> cannot restart a tomcat http connector from the console
> -------------------------------------------------------
>                 Key: GERONIMO-2766
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 2.0-M2
>         Environment: 2.0-SNAPSHOT tomcat jee5 assembly
>            Reporter: Paul McMahan
> From the admin console add a new http connector.   Connect to it using a web browser.
 Then stop the connector and start it again.  Trying to connect to it from a web browser fails
and produces the following stack trace.
> 14:50:35,862 ERROR [CoyoteAdapter] An exception or error occurred in the container during
the request processing
> java.lang.NullPointerException
>         at org.apache.catalina.connector.CoyoteAdapter.service(
>         at org.apache.coyote.http11.Http11Processor.process(
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
>         at$
>         at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message