Hi

I'm not quite sure what error you're seeing.
If an HTTP response status is >= 400 then, unless a given proxy method
explicitly returns Response, WebApplicationException will be thrown (or a
custom one provided ResponseExceptionHandler is registered). If an exception
is thrown then one can still get a Response using
WebClient.client(proxy).getResponse.

Response.getEntity() will return an error InputStream. What is not clear is
how a custom provider (DataBindingProvider) ends up tryng to deserialize
such a Response, it should not happen.

Can you post some code please ?
cheers, Sergey

On Wed, Mar 24, 2010 at 5:36 AM, tandem <[email protected]> wrote:

>
> I am talk between to jaxrs services in one tomcat and the happy path is
> working as expected. Upon error I am getting back an InputStream (i.e.
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream) from
> Response#getEntity() and originally before trying many different approaches
> I was getting a marshaling issue (Marshalling Error: class
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream nor any of its
> super class is known to this context) in the DataBindingProvider. Obviously
> the error makes sense but I am not sure what I have missed or if I simply
> should just catch the exception and the read the stream (which I am not
> entirely sure what to do with it once I have read it).
>
> Please let me know if some code will help explain the situation more.
> --
> View this message in context:
> http://old.nabble.com/JAXRSClientFactory-proxy-error-handling-tp28010855p28010855.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to