I am using RestEasy client with jackson providers and getting the above error
clientside code is:
ClientRequest request = new ClientRequest(url);
re
Client client = ClientBuilder.newBuilder().register(ResteasyJacksonProvider.class).build();
If you really want to by-pass goodness of JAX-RS actually doing serialization for you (instead of manually calling GSON), use StreamingOutput
(i.e. wrap outputter as StreamingOutput
, return that object).