Hi folks,

I have a async response which is designed to run as long as the
browser is connected (using SSE).
After the browser disconnects and data is written to the response
internally a "IOException: Broken Pipe" is thrown, which itself is not
logged, but there is some error from the state handling logged (see
below) which is quite noisy. Is there somehow to prevent this from
happening? or is this a bug?

(also happens with tomcat 9.0.27)
The spring boot guys also did have a lookt at it:
https://github.com/spring-projects/spring-boot/issues/15057

Cheerio
Johannes

```` 2018-11-02 11:43:33.016 ERROR 17152 --- [nio-8080-exec-2]
o.a.catalina.connector.CoyoteAdapter     : Exception while processing
an asynchronous request

java.lang.IllegalStateException: Calling [asyncError()] is not valid
for a request with Async state [MUST_DISPATCH]
at org.apache.coyote.AsyncStateMachine.asyncError(AsyncStateMachine.java:440)
~[tomcat-embed-core-9.0.12.jar:9.0.12]
at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:494)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at org.apache.coyote.Request.action(Request.java:430)
~[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.catalina.core.AsyncContextImpl.setErrorState(AsyncContextImpl.java:382)
~[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:239)
~[tomcat-embed-core-9.0.12.jar:9.0.12]
at org.apache.coyote.AbstractProcessor.dispatch(AbstractProcessor.java:241)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:53)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[na:1.8.0_181]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[na:1.8.0_181]
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-embed-core-9.0.12.jar:9.0.12]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
```

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to