Can you try Camel 2.10.2 and/or 2.10.4-SNAPSHOT? 2.10.3 has a known issue...
Sent from a mobile device Am 06.02.2013 01:54 schrieb "guillermo.flores" < [email protected]>: > 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]] SftpOperations INFO JSCH > -> Authentications that can continue: password > [ - sftp://[email protected]] SftpOperations INFO JSCH > -> Next authentication method: password > [ - sftp://[email protected]] SftpOperations INFO JSCH > -> Authentication succeeded (password). > [ - sftp://[email protected]] SftpOperations INFO > Connected to sftp://[email protected]:22 > [ - sftp://[email protected]] SftpConsumer INFO > Connected and logged in to: sftp://[email protected]:22 > [ - sftp://[email protected]] SftpConsumer WARN > Consumer > Consumer[sftp:// > [email protected]?delay=60000&passiveMode=true&password=******] > failed polling endpoint: > Endpoint[sftp:// > [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&delay=60000&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. >
