Hi, i'm testing the SFTP/FTP over multiple operting systems, when I test it
on a Linux RH 5.0 i'm getting an exception. Don't understand what is wrong.
Could you help me?

The exception i'm getting is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[ - sftp://root@129.222.138.155] SftpOperations                 INFO  JSCH
-> Authentications that can continue: password
[ - sftp://root@129.222.138.155] SftpOperations                 INFO  JSCH
-> Next authentication method: password
[ - sftp://root@129.222.138.155] SftpOperations                 INFO  JSCH
-> Authentication succeeded (password).
[ - sftp://root@129.222.138.155] SftpOperations                 INFO 
Connected to sftp://root@129.222.138.155:22
[ - sftp://root@129.222.138.155] SftpConsumer                   INFO 
Connected and logged in to: sftp://root@129.222.138.155:22
[ - sftp://root@129.222.138.155] SftpConsumer                   WARN 
Consumer
Consumer[sftp://root@129.222.138.155?delay=60000&passiveMode=true&password=******]
failed polling endpoint:
Endpoint[sftp://root@129.222.138.155?delay=60000&passiveMode=true&password=******].
Will try again at next poll. Caused by: [java.lang.NoSuchMethodError -
org.apache.camel.component.file.remote.SftpConsumer.isValidFile(Lorg/apache/camel/component/file/GenericFile;Z)Z]
java.lang.NoSuchMethodError:
org.apache.camel.component.file.remote.SftpConsumer.isValidFile(Lorg/apache/camel/component/file/GenericFile;Z)Z
        at
org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:121)
        at
org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:50)
        at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:107)
        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:441)
        at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

My Spring DSL 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  <camelContext trace="false" id="blueprintContext"
xmlns="http://camel.apache.org/schema/blueprint";>
    <route>
        <from
uri="sftp://root@129.222.138.155?password=password&amp;delay=60000&amp;passiveMode=true"/>
        <log message="The message contains ${body}"/>
        <to uri="file://target"/>
    </route>
</camelContext>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


My pom has these line     
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-ftp</artifactId>
        <version>2.10.3</version>
    </dependency>
  </dependencies>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/sftp-NoSuchMethodError-SftpConsumer-isValidFile-tp5726990.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to