Hi Claus,

Thanks for your response. I somehow missed this ..

Can you please confirm if you were talking about
"throwExceptionOnFailure" property or something else ? If yes , we
have already set it to "false"

Looking forward to your response.

Thanks,
Raj

On Tue, Nov 7, 2017 at 7:32 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> If you use http/http4 components etc there is an option to turn of
> throwing exception on error. See the documentation.
>
> On Mon, Nov 6, 2017 at 11:24 PM, Rajpal Paryani <rajpalpary...@gmail.com> 
> wrote:
>> Hi,
>>
>> We have recently switched to Apache Camel 2.18.4 in our web service
>> from the older version 2.11.1. We use camel for routing our http calls
>> to underlying sub services so that the responsibilities are separated.
>>
>> One of our services has a CDN infront of the camel endpoint, so it
>> frequently sends the Web requests (GET) with
>> "if-modified-since=<Timestamp>"  (for e.g. -> "if-modified-since=Sun,
>> 29 Oct 2017 16:51:56 GMT" ). and the underlying service responds with
>> a 304 status code.
>>
>> Now when it gets to Camel , it then converts to a 500 response. with
>> the below stack trace exception
>>
>> [http-nio-8080-exec-1528] ERROR
>> org.apache.camel.component.servlet.CamelHttpTransportServlet - Error
>> processing request
>> org.apache.camel.RuntimeCamelException: java.io.IOException: Stream closed
>> at org.apache.camel.http.common.HttpMessage.createBody(HttpMessage.java:74)
>> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47)
>> at 
>> org.apache.camel.http.common.DefaultHttpBinding.doWriteResponse(DefaultHttpBinding.java:386)
>> at 
>> org.apache.camel.http.common.DefaultHttpBinding.writeResponse(DefaultHttpBinding.java:322)
>>
>>
>> <<truncated exception stacktrace .. please let me know if you need the
>> complete stacktrace>>
>>
>> The same requests works just fine with Camel 2.11.1
>>
>> Please let me know if you have any questions.
>>
>> Thanks,
>> Raj
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Thanks,
Raj

Reply via email to