There's really not anything you can do about this at the Resteasy/JAX-RS
level. Buffering responses can also be VERY BAD for performance so
Resteasy (and really JAX-RS) writes directly to the network output
stream when marshalling via Jackson.
Depending on what servlet container you are using,
Hello,
I'm exposing my application via RESTEasy 3.0.5Final with Jackson JSON
provider. The serialization is still being written, so sometimes bugs
creep out. Most often it is some exception being thrown by the Jackson
serializer.
However, at the moment it happens, the response is already commited