users@jersey.java.net

[Jersey] Detecting client abort: SEVERE: An I/O error has occurred while writing a response message entity to the container output stream.

From: Graham Leggett <minfrin_at_sharp.fm>
Date: Mon, 23 Feb 2015 22:35:45 +0200

Hi all,

When the client aborts, the following error message is logged to catalina.out:

SEVERE: An I/O error has occurred while writing a response message entity to the
 container output stream.

I have a need to catch this error somehow in a callback so I can terminate an expensive process when the client aborts. How do I do this?

Regards,
Graham