Hi,
I am new to Camel and attempting to use the SFTP setup. Virtually identical
strings between 2 separate projects (one in the java dsl 2.10.3 and one in
the spring setup 2.10.2) are behaving differently.
Springs looks like this:
<from
uri="sftp:[email protected]:10002/data?password=pw&move=.done&consumer.delay=6000"/>
This one works as I would expect
The Java DSL looks like the below:
from("sftp:[email protected]:10002/data?password=pw&move=.done&consumer.delay=6000")
When adjusted the code to remove the move clause and /data directory switch
the code works.
Down grading the JAVA DSL project to 2.10.2 addresses the error. It seems
that a bug may have been (re?) introduced into the 2.10.3 ftp code.
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: \
at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:434)[camel-ftp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(SftpOperations.java:407)[camel-ftp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:52)[camel-ftp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:107)[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(Executors.java:441)[:1.6.0_31]
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_31]
at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_31]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_31]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_31]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_31]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]
--
View this message in context:
http://camel.465427.n5.nabble.com/SFTP-behaves-differently-between-Spring-and-Java-DSL-tp5725419.html
Sent from the Camel Development mailing list archive at Nabble.com.