It looks like you are using different version of camel-core and camel-ftp.
Can you check those jars version in you class path ?


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, February 6, 2013 at 2:55 AM, guillermo.flores wrote:

> 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://[email protected] (mailto:[email protected])] SftpOperations 
> INFO JSCH
> -> Authentications that can continue: password
> [ - sftp://[email protected] (mailto:[email protected])] SftpOperations 
> INFO JSCH
> -> Next authentication method: password
> [ - sftp://[email protected] (mailto:[email protected])] SftpOperations 
> INFO JSCH
> -> Authentication succeeded (password).
> [ - sftp://[email protected] (mailto:[email protected])] SftpOperations 
> INFO  
> Connected to sftp://[email protected] (mailto:[email protected]):22
> [ - sftp://[email protected] (mailto:[email protected])] SftpConsumer 
> INFO  
> Connected and logged in to: sftp://[email protected] 
> (mailto:[email protected]):22
> [ - sftp://[email protected] (mailto:[email protected])] SftpConsumer 
> WARN  
> Consumer
> Consumer[sftp://[email protected]?delay=60000&passiveMode=true&password=******]
>  (mailto:[email protected]?delay=60000&passiveMode=true&password=******])
> failed polling endpoint:
> Endpoint[sftp://[email protected]?delay=60000&passiveMode=true&password=******].
>  (mailto:[email protected]?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://[email protected]?password=password&amp;delay=60000&amp;passiveMode=true
>  
> (mailto:[email protected]?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 
> (http://Nabble.com).



Reply via email to