Hi Use the message translator eip to set a null message. If you work on the exchange directly you likely need more work as its done here https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/processor/SetBodyProcessor.java#L56
On Tue, May 26, 2015 at 1:27 PM, geppo <geppore...@gmail.com> wrote: > Thanks hekonsek for the reply. I'll do it as soon as I can (I need to cleanup > the code from all references to my company). > > I think the problem is on how the new Camel handles the command: > > exchange.getIn().setBody(null) > > where: > - exchange is DefaultExchange > - exchange.getIn() is GenericFileMessage > > With Camel 2.9.3 the value of exchange.getIn().getBody() would is Null after > the command above. > With Camel 2.15.2 the value of exchange.getIn().getBody() is an instance of > java.io.File with: > filePath = null > path = "C:\input_file.txt" > prefixLength = 3 > status = null > > Has anybody noticed this behaviour? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Exchange-setBody-not-working-with-Camel-2-15-2-tp5767420p5767473.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/