camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: InvalidPayloadException
Date Wed, 17 Oct 2007 13:37:21 GMT
On 17/10/2007, jpcook <jonathan.cook@erars.plus.com> wrote:
>
> Hi,
>
> I am getting this error when trying to consume and write a simple text
> message to file:
>
> 15234 [DefaultMessageListenerContainer-15] ERROR
> org.apache.camel.processor.DeadLetterChannel  - On delivery attempt: 0
> caught: org.apache.camel.InvalidPayloadException: No in body available of
> type: java.io.InputStream but has value: Hello World of type:
> java.lang.String on the exchange: Exchange[FileMessage: target]
>
> I thought I might be able to use convertBodyTo(InputStream.class) but that
> doesn't seem to help
>
> Any help would be much appreciated.

It sounds like a message doesn't have a body in it. Do you have an
example of the Java code you were using to reproduce this?

-- 
James
-------
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com

Mime
View raw message