-
Bug
-
Resolution: Done
-
Major
-
None
-
None
With a http4 producer that invokes a rest web service that returns an expected status of 204 "No Content" and no response body, the http4 producer throws:
org.apache.camel.RuntimeCamelException: java.io.IOException: Stream closed at org.apache.camel.http.common.HttpMessage.createBody(HttpMessage.java:80) at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:54) at org.apache.camel.builder.ExpressionBuilder$35.evaluate(ExpressionBuilder.java:905) at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:36) at org.apache.camel.processor.LogProcessor.process(LogProcessor.java:64) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java