route ftp not working

One Star

route ftp not working

Hello,
I want to use a very simple route for putting files into a ftp folder and it didn't work, the error is :

RemoteFileProducer             INFO  Connected and logged in to: Endpoint
RemoteFileProducer WARN Writing file failed with: File operation failed: 550 \: Not a directory.
Cannot change directory to: \. Code: 550
GenericFileOnCompletion WARN Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@8a6ff9 for file: GenericFile
DefaultErrorHandler ERROR Failed delivery for (MessageId: ID-Gen-pc044-53400-1387564966582-0-1 on ExchangeId: ID-Gen-pc044-53400-1387564966582-0-2). Exhausted after delivery attempt: 1 caught: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 550 \: Not a directory.
Cannot change directory to: \. Code: 550
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 550 \: Not a directory.
Cannot change directory to: \. Code: 550
at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:704)
at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:667)
at org.apache.camel.component.file.remote.FtpOperations.buildDirectory(FtpOperations.java:284)
at org.apache.camel.component.file.GenericFileProducer.writeFile(GenericFileProducer.java:238)
at org.apache.camel.component.file.GenericFileProducer.processExchange(GenericFileProducer.java:151)
at org.apache.camel.component.file.remote.RemoteFileProducer.process(RemoteFileProducer.java:49)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:336)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Do you know where it come from ?
Moderator

Re: route ftp not working

Hi,
Could you please upload your screenshots of route design into forum so that we can address your issue more quickly.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: route ftp not working

here we go Smiley Happy
thx for your help
One Star

Re: route ftp not working

Hi,
RemoteFileProducer WARN  Writing file failed with: File operation failed: 550 \: Not a directory.

What are exact parameters you use? What are the FTP server component properties? Even you can have problems handling subdirectories between Windows and Linux/Unix filesystem. Can that be a problem?
Does the route fails immediately or it copies at least something?
Have fun
Gabriel
One Star

Re: route ftp not working

Hi,
Unfortunatly I don't know if the FTP I want to reach is on Linux or Windows.
The route fails, It copies nothing
One Star

Re: route ftp not working

This issue is resolved in ?camel-ftp-2.10.7.jar? (Download link: http://repo1.maven.org/maven2/org/apache/camel/camel-ftp/2.10.7/)