Workaround ClientAbortException and IOException

rest_jersey2_client_abort_exception_thumb

This tutorial provides a workaround for the ClientAbortException (IOException) that may occur when writing output streams via a Response in a Jersey REST web service. There is a previous post dealing with video streaming where you can find the Github repository in a working example. 1. ClientAbortException The stack trace for the ClientAbortException looks like this:

The ClientAbortException occurs when sending a Response to a client and the client closes the connection before all (stream) data was transmitted. 2. Workaround for ClientAbortException This exception is not catchable in the…

Read More