Re: InvalidPayloadException when sorting lines in a csv file

2018-06-08 Thread Ivana Cace
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

Re: InvalidPayloadException when sorting lines in a csv file

2018-06-08 Thread Claus Ibsen
.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

Re: InvalidPayloadException when sorting lines in a csv file

2018-06-08 Thread Ivana Cace
) 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

Re: InvalidPayloadException when sorting lines in a csv file

2018-06-08 Thread Claus Ibsen
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

InvalidPayloadException when sorting lines in a csv file

2018-06-08 Thread Ivana Cace
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")