This content has been marked as final.
Show 4 replies
-
1. Re: Problem file component - help
davsclaus Jan 15, 2011 3:08 AM (in response to pchandler)Just do
String body = inMessage.getBody(String.class);
-
2. Re: Problem file component - help
pchandler Jan 17, 2011 9:42 PM (in response to davsclaus)Claus:
Yes. I did a:
String inString = inMessage.getBody(String.class);
The issue is inString == null.
And after some investigation it's the same issue 8624 The only difference is the ftp component throws a org.apache.camel.NoTypeConversionAvailableException. And this time I didn't get an exception. Just a null returned?
Peter.
-
3. Re: Problem file component - help
davsclaus Jan 18, 2011 12:46 AM (in response to pchandler)Make sure all the type converters can be loaded when you startup Camel.
-
4. Re: Problem file component - help
davsclaus Jan 18, 2011 12:47 AM (in response to davsclaus)And if you do a mandatory body
String inString = inMessage.getMandatoryBody(String.class);
It will throw an exception if the body is null or cannot be converted.