Hi There is a known issue in Camel 2.10.3 with the sftp component. Use 2.10.2 or the new 2.10.4.
On Wed, Feb 27, 2013 at 7:34 PM, GarethHughes <gareth.hug...@hp.com> wrote: > Hi, > > I'm new to Camel so I may have missed something obvious. > > I am using Camel 2.10.3, running on Windows 2003 server and Java 1.6. > > I am attempting to poll files from an FTP endpoint using the following URL: > > ftp:egate@devweb/camel_hosts/REMHOST_A/out?password=*****&binary=true&localWorkDirectory={{work_base_directory}}/REMHOST_A/receive&ftpClient.dataTimeout=3000&move=..//sent&stepwise=false > > The FTP server is running on Solaris 10... > ftp> quote SYST > 215 UNIX Type: L8 Version: SUNOS > > However, Camel appears to think it is an Windows box as it is replacing UNIX > style file separators with Windows style separators.... > > [vweb/camel_hosts/REMHOST_A/out] GenericFileOnCompletion WARN Caused > by: [org.apache.camel.component.file.GenericFileOperationFailedException - > File operation failed: 550 \apps\seebeyond: No such file or directory. > Cannot change directory to: \apps\seebeyond. Code: 550] > org.apache.camel.component.file.GenericFileOperationFailedException: File > operation failed: 550 \apps\seebeyond: No such file or directory. > Cannot change directory to: \apps\seebeyond. Code: 550 > at > org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:702)[camel-ftp-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:658)[camel-ftp-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.remote.FtpOperations.buildDirectory(FtpOperations.java:284)[camel-ftp-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.renameFile(GenericFileProcessStrategySupport.java:100)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:86)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:132)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileOnCompletion.onCompletion(GenericFileOnCompletion.java:82)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileOnCompletion.onComplete(GenericFileOnCompletion.java:53)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.util.UnitOfWorkHelper.doneSynchronizations(UnitOfWorkHelper.java:55)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.impl.DefaultUnitOfWork.done(DefaultUnitOfWork.java:226)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.UnitOfWorkProcessor.doneUow(UnitOfWorkProcessor.java:199)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.UnitOfWorkProcessor.processSync(UnitOfWorkProcessor.java:139)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:115)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:336)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:94)[camel-ftp-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)[camel-core-2.10.3.jar:2.10.3] > at > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)[camel-core-2.10.3.jar:2.10.3] > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown > Source)[:1.6.0_26] > at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown > Source)[:1.6.0_26] > at java.util.concurrent.FutureTask.runAndReset(Unknown > Source)[:1.6.0_26] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown > Source)[:1.6.0_26] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown > Source)[:1.6.0_26] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown > Source)[:1.6.0_26] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown > Source)[:1.6.0_26] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source)[:1.6.0_26] > at java.lang.Thread.run(Unknown Source)[:1.6.0_26] > > I was under the impression that Camel would determine the server type from > the response to a SYST command. > > A similarly configured FTP endpoint polling a Windows FTP server works just > fine. > > Is there anything I have missed in the configuration of the FTP endpoint > polling the UNIX server? > > Thank you. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-polling-UNIX-FTP-server-tp5728242.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen