camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajpal Paryani <>
Subject If-Modified-Since header causing 500 errors with Camel 2.18.4
Date Mon, 06 Nov 2017 22:12:53 GMT

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
- Error processing request
org.apache.camel.RuntimeCamelException: Stream closed
at org.apache.camel.http.common.HttpMessage.createBody(
at org.apache.camel.impl.MessageSupport.getBody(
at org.apache.camel.http.common.DefaultHttpBinding.doWriteResponse(
at org.apache.camel.http.common.DefaultHttpBinding.writeResponse(

<<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.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message