Ibsen
Verzonden: vrijdag 8 juni 2018 12:12:27
Aan: users@camel.apache.org
Onderwerp: Re: InvalidPayloadException when sorting lines in a csv file
Hi
Ah okay its not a String type but an ArrayList, which is the output of
the Sort EIP.
a)
You can try adding
.convertBodyTo(String.class)
before
.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:107)
> at
> org.apache.camel.component.file.FileOperations.storeFile(FileOperations.java:325)
> ... 23 common frames omitted
>
>
>
> Van: Claus Ibsen
> Verzonden: vrijdag 8 juni 201
)
at
org.apache.camel.component.file.FileOperations.storeFile(FileOperations.java:325)
... 23 common frames omitted
Van: Claus Ibsen
Verzonden: vrijdag 8 juni 2018 10:45:41
Aan: users@camel.apache.org
Onderwerp: Re: InvalidPayloadException when sorting lines
Hi
What version of Camel do you use?
And frankly Camel ought to be able to write a String body to a file,
so that is a bit surprising. Maybe you can post your stacktrace for us
to look at?
On Fri, Jun 8, 2018 at 10:14 AM, Ivana Cace wrote:
> Hi,
>
>
> I'm trying to sort a csv file, but when I
Hi,
I'm trying to sort a csv file, but when I try to write the file i get a
InvalidPayloadException due to "Error during type conversion from type:
java.lang.String to the required type: java.io.InputStream".
Here is the route:
from("file:path?filterFile=${file:size} < 6000")