You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Paul McMahan (JIRA)" <ji...@apache.org> on 2007/01/22 20:59:30 UTC

[jira] Created: (GERONIMO-2766) cannot restart a tomcat http connector from the console

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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (GERONIMO-2766) cannot restart a tomcat http connector from the console

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Closed: (GERONIMO-2766) accessing a stopped tomcat connector produces NullPointerException

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
     [ 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

> accessing a stopped tomcat connector produces NullPointerException
> ------------------------------------------------------------------
>
>                 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 connect to it from a web browser,  producing 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.


[jira] Updated: (GERONIMO-2766) accessing a stopped tomcat connector produces NullPointerException

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul McMahan updated GERONIMO-2766:
-----------------------------------

    Description: 
>From the admin console add a new http connector.   Connect to it using a web browser.  Then stop the connector and connect to it from a web browser,  producing 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)


  was:
>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)


        Summary: accessing a stopped tomcat connector produces NullPointerException  (was: cannot restart a tomcat http connector from the console)

> accessing a stopped tomcat connector produces NullPointerException
> ------------------------------------------------------------------
>
>                 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 connect to it from a web browser,  producing 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.


[jira] Reopened: (GERONIMO-2766) cannot restart a tomcat http connector from the console

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul McMahan reopened GERONIMO-2766:
------------------------------------


reopening to edit the desription

> 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.