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 2014/09/23 23:27:28 UTC
[Bug 57011] New: Servlet 3 problem when writing HTTP response in the
AsyncListener onTimeout method
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Bug ID: 57011
Summary: Servlet 3 problem when writing HTTP response in the
AsyncListener onTimeout method
Product: Tomcat 8
Version: 8.0.12
Hardware: PC
Status: NEW
Severity: regression
Priority: P2
Component: Connectors
Assignee: dev@tomcat.apache.org
Reporter: dario.franceschi@consult.nordea.com
Created attachment 32050
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32050&action=edit
Servlet
Get the following exception every time the onTimeout method has been called
INFO: Encountered a non-recycled request and recycled it forcedly.
org.apache.catalina.connector.CoyoteAdapter$RecycleRequiredException
at
org.apache.catalina.connector.CoyoteAdapter.checkRecycled(CoyoteAdapter.java:717)
at
org.apache.coyote.http11.AbstractHttp11Processor.recycle(AbstractHttp11Processor.java:1791)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:239)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:733)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:724)
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
OS| |All
--- Comment #5 from Mark Thomas <ma...@apache.org> ---
This has been fixed in 8.0.x and will be included in 8.0.13 onwards.
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> ---
Created attachment 32052
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32052&action=edit
bug32051.war
A war file that contains reproducer classes, as submitted by Dario Franceschi,
compiled with Java 6.
Steps to reproduce:
1. Deploy the war
2. Access http://localhost:8080/bug32051
A simple HTML page with word "hej" is displayed in browser.
3. The INFO message from CoyoteAdapter.checkRecycled is printed on the console
It reproduces for me with current Tomcat 8 (trunk @r1627265) with every one of
4 connectors (Bio, Nio, Nio2, Apr) using JDK 7u67 (32-bit) on Windows 7.
It does not reproduce for me with current Tomcat 7 (tc7.0.x @r1627245) with any
of 3 connectors (Bio, Nio, Apr) and any of {JDK 6u45, 7u67} (32-bit) on Windows
7. The page is displayed and there is no log message.
--
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 57011] Servlet 3 problem when writing HTTP response in the
AsyncListener onTimeout method
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
--- Comment #1 from Dario Franceschi <da...@consult.nordea.com> ---
Created attachment 32051
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32051&action=edit
Context listener
If you omit the close on the printwriter the socket will be RST before the data
is transferred causing for instance wget to re-submit
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Comment on attachment 32051
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32051
Context listener
Thanks for the WAR Konstantin. I see this on OSX. It looks to be OS neutral to
me.
I'll note that the AsyncListener should be calling AsyncContext.complete() at
the end of onTimeout() which may avoid this error. Irrespective of that, this
is still a bug that needs to be fixed.
--
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 57011] Servlet 3 problem when writing HTTP response in the
AsyncListener onTimeout method
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Dario Franceschi <da...@consult.nordea.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #2 from Dario Franceschi <da...@consult.nordea.com> ---
Seems I only get this on windows 7 (64) and tomcat 8 ( tried 8-11 & 8-12 ) on
tomcat 7 I do not get this, I do not get this on tomcat 8 on (32 bit) linux
either.
Have also tried Java7 & Java8 but that does not seem to be related.
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Violeta Georgieva <vi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Connectors |Catalina
Version|8.0.12 |trunk
Product|Tomcat 8 |Tomcat 7
Target Milestone|---- |---
--- Comment #6 from Violeta Georgieva <vi...@apache.org> ---
This has been back-ported in 7.0.x and will be included in 7.0.56 onwards.
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Dario Franceschi <da...@consult.nordea.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Servlet 3 problem when |Exception when writing HTTP
|writing HTTP response in |response in the
|the AsyncListener onTimeout |AsyncListener onTimeout
|method |method (servlet 3 HTTP-NIO)
--
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 57011] Exception when writing HTTP response in the
AsyncListener onTimeout method (servlet 3 HTTP-NIO)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57011
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|All |Windows 7
--
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