camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Mueller <>
Subject Cannot read from file - InvalidPayloadException
Date Wed, 09 Dec 2009 23:10:53 GMT

Hello all, I'm hoping someone has a quick answer for this:

Running Camel 2.0 inside Felix/Karaf

My Route is:
			<camel:from uri="file:///test/data/smpp?move=/test/done/${file:name}" />
			<!-- camel:convertBodyTo type=""/-->
			<camel:unmarshal ref="jsonMessage" />
			<camel:process ref="messageSaver" />
			<camel:to uri="" />

When dropping a file into the incoming directory, I see the following in the

org.apache.camel.InvalidPayloadException: No body available of type: but has value:
GenericFile[/test/data/smpp/sms-test1.msg] of type:
org.apache.camel.component.file.GenericFile on: GenericFileMessage with
file: GenericFile[/test/data/smpp/sms-test1.msg]. Caused by: No type
converter available to convert from type:
org.apache.camel.component.file.GenericFile to the required type: with value GenericFile[/test/data/smpp/sms-test1.msg] on
the exchange: Exchange[GenericFileMessage with file:

I've tried to run it with or without the explicit convertBodyTo element,
same message either way. I've also ensured that org.apache.camel.converter
and are explicitly imported into my bundle
with the camel-context.

Any ideas what is causing this?
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message