[ 
https://issues.apache.org/jira/browse/GERONIMO-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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: https://issues.apache.org/jira/browse/GERONIMO-2766
>             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(CoyoteAdapter.java:212)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>         at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>         at java.lang.Thread.run(Thread.java:613)

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

Reply via email to