Hi All, I've problem with the FTP2-based route with used localWorkDirectory parameter. I'm using Camel 2.12 and JavaSE 1.7.
There are two scenarios: 1) I want to download file from remote FTP server to two different locations (pure downloading). 2) I want to download file from FTP server to one remote location and next, start an exe file on downloaded file. For both I'm using 'from' clause like this one: /"ftp://user@host:21//path?passiveMode=true&binary=true&password=pass&autoCreate=false&noop=true&directoryMustExist=false"/ In the first scenario I'm using 'to' clause like this: /".multicast().parallelProcessing().to("file://dirX").to("file://dirY").end()./ In the second scenario the statement look like this one: /".to("file://dirX").to("exec://someExe")"/. When localWorkDirectory is not used, everything okay, and both scenarios succeed. When I'm using localWorkDirectory (for performance issues I need use it) both scenarios fail. In the first one the GenericFileOperationFailedException is thrown (on the one of two defined endpoints with message: Cannot store file: /file name/). In the second one I've got TypeConversionException: Error during type conversion from type: java.io.File to the required type: java.io.InputStream with value: /path of file with local work directory/ file due java.io.FileNotFoundException: /file name/ (The system cannot find the file specified). Which is also confusing. Finally, the basic problem is that no matter of route purpose end destination endpoints, if there is more than one 'to' endpoint with 'from' ftp endpoint which use localWorkDirectory. I tested it with 'file' endpoint and t works. Also when only one 'to' endpoint is used, it works. Is this a bug, or I'm doing something wrong? -- View this message in context: http://camel.465427.n5.nabble.com/GenericFileOperationFailedException-at-FTP2-route-with-local-work-directory-tp5742596.html Sent from the Camel - Users mailing list archive at Nabble.com.