Hi, On Mon, Apr 14, 2014 at 9:48 AM, Pär Wenåker <[email protected]> wrote: > Hi, > > I have an example (https://github.com/parwen68/akka-async-servlet) where I > generate a slow response and is using non-blocking IO to write the response > back to a client. When the client terminates the connection before the full > response has been written back I get a WARN level exception written to the > log. Is there a way to handle this error, so that the warning is never > written to the log? > > Jetty version: 9.1.4.v20140401 > > The exception is: > > WARN:oejs.HttpChannel:qtp1759778232-21: /AsyncServlet > > java.nio.channels.WritePendingException > > at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:150) > > at org.eclipse.jetty.server.HttpOutput.run(HttpOutput.java:725) > > at > org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1160) > > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334) > > at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:236) > > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) > > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) > > at java.lang.Thread.run(Thread.java:744) > > WARN:oejs.HttpChannel:qtp1759778232-21: Could not send response error 500: > java.nio.channels.WritePendingException > > WARN:oejs.HttpChannel:qtp1759778232-21: complete failed > > java.nio.channels.WritePendingException > > at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:150) > > at org.eclipse.jetty.server.Response.closeOutput(Response.java:1041) > > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) > > at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:236) > > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) > > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) > > at java.lang.Thread.run(Thread.java:744)
Please file an issue, we should handle this more gracefully. https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jetty Thanks -- Simone Bordet ---- http://cometd.org http://webtide.com http://intalio.com Developer advice, training, services and support from the Jetty & CometD experts. Intalio, the modern way to build business applications. _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
