Hi Claus, Thanks Claus for your reply. I did few round of testing with Camel 2.13.0 and did not get this issue with done file name. I need to upgrade to Camel 2.13.0.
Regards, Shadab -----Original Message----- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Thursday, April 10, 2014 3:21 PM To: users@camel.apache.org Subject: Re: SFTP producer cannot delete the exesting donefilename Hi Do you have any chance to test with Camel 2.13.0 and see if its still a problem in that release? If it is, you are welcome to log a JIRA ticket about this issue http://camel.apache.org/support On Thu, Apr 10, 2014 at 8:58 AM, Ali, Mohammad <mohammad.a...@genpact.com> wrote: > Hi, > > I am facing issue with Sftp producer while using done file name option > with stepwise option as false. Previously it was not creating the done > files in SFTP destination, I googled and found the solution to make > stepwise as true and it works and created the done file > > stepwise=false doesnot create done file. > stepwise=true creates the done file. File processed test.txt, in sftp > destination two files created test.txt, and test.txt.done. > > but when the route is restarted and same file(test.txt) is passed > which processed earlier, sftp and tries to delete the existing done > file(test.txt.done) but fails to delete and throws the following > exception GenericFileOperationFailedException("Cannot delete existing > done file: " + doneFileName); > > Below is the camel route: > > > from("sftp://my.comp.com:22/sftp?username=test&password=test123&idempo > tent=true").process(new Processor() { > > @Override > public void process(Exchange exchange) throws > Exception { > System.out.println("test"); > > } > > }).to("sftp://my.comp.com:22/sftpDest?username=test&password=test123&d > oneFileName=${file:name}.done&stepwise=true&chmod=777"); > > > Camel version used is camel-2.9.0. > > Please help. > > Thanks & Regards, > Shadab > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only by intended > recipients. Unauthorized access to this e-mail (or attachments) and > disclosure or copying of its contents or any action taken in reliance on it > is unlawful. Unintended recipients must notify the sender immediately by > e-mail/phone & delete it from their system without making any copies or > disclosing it to a third person. > -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/ This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.