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 2017/08/01 09:27:10 UTC

[Bug 61367] New: NPE exception in org.apache.catalina.connector.CoyoteAdapter.service

https://bz.apache.org/bugzilla/show_bug.cgi?id=61367

            Bug ID: 61367
           Summary: NPE exception in
                    org.apache.catalina.connector.CoyoteAdapter.service
           Product: Tomcat 7
           Version: 7.0.68
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: dkwakkel@gmail.com
  Target Milestone: ---

This is a regression of https://bz.apache.org/bugzilla/show_bug.cgi?id=52009

http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_67/java/org/apache/catalina/connector/CoyoteAdapter.java
{code}
   if (postParseSuccess &&
                        request.getMappingData().context != null) {
                    // Log only if processing was invoked.
                    // If postParseRequest() failed, it has already logged it.
                    // If context is null this was the start of a comet request
                    // that failed and has already been logged.
                    ((Context) request.getMappingData().context).logAccess(
{code}

http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_68/java/org/apache/catalina/connector/CoyoteAdapter.java
{code}
  if (postParseSuccess) {
                        // Log only if processing was invoked.
                        // If postParseRequest() failed, it has already logged
it.
                        // If context is null this was the start of a comet
request
                        // that failed and has already been logged.
                        ((Context) request.getMappingData().context).logAccess(
{code}
As you can see the comment is still there but the check is removed (I could not
find which checkin this is caused by).

Because of this following NPE is shown in the log:
{code}
May 10, 2017 5:26:17 PM org.apache.coyote.http11.AbstractHttp11Processor
process
SEVERE: Error processing request
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:473)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
{code}

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


[Bug 61367] NPE exception in org.apache.catalina.connector.CoyoteAdapter.service

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

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Also, please test with the latest stable 7.0.x release.

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


[Bug 61367] NPE exception in org.apache.catalina.connector.CoyoteAdapter.service

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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This is not a regression of BZ52009. The circumstances in which the NPE was
triggered in that case can not trigger in NPE in the current code. Further,
that bug was triggered by Comet use. The stack trace in this bug shows the BIO
connector is being used which does not support Comet.

Please provide the steps to reproduce this issue.

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


[Bug 61367] NPE exception in org.apache.catalina.connector.CoyoteAdapter.service

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
It has been over a month with no steps provided to reproduce this and no
information regarding testing with the latest 7.0.x.

Resolving this as WORKSFORME on the basis that I can't reproduce it and and
assumption that an upgrade to the latest 7.0.x fixes it.

If this is still an issue, feel free to re-open and provide the steps necessary
to reproduce it.

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