tdiesler/resteasy-mobile — Issue #2: Non JSON response results in stack overflow
Author: pcw216
Created: 2012-02-29 18:11:56+00:00
State: open

It might be good to note that this fork only supports JSON content types. If you attempt to consume an "application/xml" response, the client fails with a stack overflow.

BaseClientResponse:384 throws an exception because it can't find an appropriate MessageBodyReader for the media type. It looks like the exception handling attempts to read the response again, leading to infinite recursion and a stack overflow.

The exception handling here is broken and doesn't give you any information about the problem. It took me a bit of debugging to figure out what was happening.