Hi, contractreji. Thanks for the reply. I do have all the permissions because I use admin credentials to access the sftp location. I wonder if you have any idea how I can resolve the issue.
Thanks On Tue, Jan 13, 2015 at 6:05 PM, contactreji [via Camel] < ml-node+s465427n5761660...@n5.nabble.com> wrote: > Hey buddy > > I had faced similar issue few months back. > It so happened that my ftp admin hadn't provide delete and write > authorizations to my ftp credentials . > > It would be a good idea to check with ur ftp admin personnel if these > rights are provided to ur ftp credentials. > > Cheers > Reji > On 9 Jan 2015 12:36, "yeandone" <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5761660&i=0>> wrote: > > > Hi, All. > > > > I have an issue deleting a file with delete=true from a SFTP consumer. > > My > > route looks like the following: > > <route id="A_ROUTE"> > > <from > > uri=" > > sftp:[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5761660&i=1>?password=xxx&delete=true&filter=#fileFilter"/> > > > <choice> > > <when> > > <simple>${body} != null</simple> > > <multicast> > > <to uri="direct:a"/> > > <to uri="direct:b"/> > > </multicast> > > </when> > > <otherwise> > > <to uri="direct:b"/> > > </otherwise> > > </choice> > > <to > > uri="controlbus:route?routeId=A_Route&action=stop" /> > > </route> > > > > whenever it runs, it will end up > > WARN Camel (platformSchedulerCamel) thread #7 - sftp://xxx > > org.apache.camel.component.file.GenericFileOnCompletion - Rollback file > > strategy: > > > > > org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy@4b474b47 > > for file: RemoteFile[a.txt] > > > > Does anyone have any idea why it happens? What I want to do is deleting > > original file after it's processed by direct: a and direct: b and then > stop > > the route which will stop the file polling from the sftp location. If > > nothing is picked, then I want to do some processing in direct:b and > then > > stop the route. > > > > If I remove > > <to uri="controlbus:route?routeId=A_Route&action=stop" /> at the > end, > > the file will be deleted. However, the sftp consumer will never stop and > > keep polling stfp, which I do not want to happen. > > > > Any help or any ideas will be appreciated!!! > > > > Thanks, > > W > > > > > > > > > > -- > > View this message in context: > > > http://camel.465427.n5.nabble.com/Help-FTP-SFTP-File-Delete-Problem-and-FTP-SFTP-Polling-Problem-tp5761486.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/Help-FTP-SFTP-File-Delete-Problem-and-FTP-SFTP-Polling-Problem-tp5761486p5761660.html > To unsubscribe from Help: FTP/SFTP File Delete Problem and FTP/SFTP > Polling Problem, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5761486&code=d2lsbGNvdXJzZXJhQGdtYWlsLmNvbXw1NzYxNDg2fDc4ODg5MzE5OQ==> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Help-FTP-SFTP-File-Delete-Problem-and-FTP-SFTP-Polling-Problem-tp5761486p5761662.html Sent from the Camel - Users mailing list archive at Nabble.com.