You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/12/03 00:59:49 UTC

DO NOT REPLY [Bug 50405] New: Null Pointer Exception at Coyote Adapter

https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

           Summary: Null Pointer Exception at Coyote Adapter
           Product: Tomcat 7
           Version: 7.0.5
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: eduardovilches@yahoo.com


I am using Tomcat 7.0.5 on Windows 7 and Fedora (this issue happens in both),
using the Http11NioProtocol for a SSL connection with a self-signed
certificate.
Session persistence is disabled, and Comet connection tracking is enabled, in
context.xml.

I have a servlet that implements CometProcessor. It seems to runs fine.
However, at the first time-out event, the following error gets logged:

SEVERE: An exception or error occurred in the container during the request
processing
java.lang.NullPointerException
    at
org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:270)
    at
org.apache.coyote.http11.Http11NioProcessor.asyncDispatch(Http11NioProcessor.java:233)
    at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Http11NioProtocol.java:305)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1526)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

It doesn't seem to happen again after subsequent time-outs from the same
session. If one logs in again under another session, the exception happens
again after the first time out.
I haven't observed any adverse practical implications. However, I am running
this on a machine with very few users and have not tested yet on a full scale.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50405] Null Pointer Exception at Coyote Adapter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-01-28 10:57:33 EST ---
Thanks for the test case. I just ran it against the latest 7.0.x and I no
longer see the NPE. I recently fixed a bunch of Comet issues with 7.0.x so I
suspect that the root cause of this got fixed as part of that.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50405] Null Pointer Exception at Coyote Adapter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

Miguel Hernandez <mi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from Miguel Hernandez <mi...@gmail.com> 2011-01-25 18:08:01 EST ---
I'm having the NPE on exactly the same line of the CoyoteAdapter on 7.0.5. The
conditions are slightly different, but its probably related. 

Please follow these instructions:

1. Configure the Http11NioProtocol connector.
2. deploy the attached WAR.
3. open http://localhost:8080/crazed_proxy/
4. click the submit button.

And the NPE will begin to appear.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50405] Null Pointer Exception at Coyote Adapter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

Miguel Hernandez <mi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |migs.ho@gmail.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50405] Null Pointer Exception at Coyote Adapter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

--- Comment #2 from Miguel Hernandez <mi...@gmail.com> 2011-01-25 18:03:00 EST ---
Created an attachment (id=26550)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26550)
A simple test application that presents the error reported.

A similar test case for 7.0.5

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50405] Null Pointer Exception at Coyote Adapter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50405

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
         OS/Version|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-12-12 18:25:32 EST ---
I'm having trouble reproducing this. Could you provide a simple test case that
demonstrates the issue please.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org