I get the following error when the int-sftp:inbound-channel-adapter starts.
I checked the host/user/password/port values are all correct.
The local and remote directories have proper file permissions etc. Any thing that I am doing wrong here? Request for suggestions.
org.springframework.integration.MessagingException : Problem occurred while synchronizing remote to local directory
at org.springframework.integration.file.remote.synchr onizer.AbstractInboundFileSynchronizer.synchronize ToLocalDirectory(AbstractInboundFileSynchronizer.j ava:136)
at org.springframework.integration.file.remote.synchr onizer.AbstractInboundFileSynchronizingMessageSour ce.receive(AbstractInboundFileSynchronizingMessage Source.java:132)
at org.springframework.integration.endpoint.SourcePol lingChannelAdapter.doPoll(SourcePollingChannelAdap ter.java:89)
at org.springframework.integration.endpoint.AbstractP ollingEndpoint$1.call(AbstractPollingEndpoint.java :145)
at org.springframework.integration.endpoint.AbstractP ollingEndpoint$1.call(AbstractPollingEndpoint.java :143)
at org.springframework.integration.endpoint.AbstractP ollingEndpoint$Poller$1.run(AbstractPollingEndpoin t.java:206)
at org.springframework.integration.util.ErrorHandling TaskExecutor$1.run(ErrorHandlingTaskExecutor.java: 52)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.core.NestedIOException: Failed to list files; nested exception is 2: No such file
at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:83)
at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:43)
at org.springframework.integration.file.remote.sessio n.CachingSessionFactory$CachedSession.list(Caching SessionFactory.java:133)
at org.springframework.integration.file.remote.synchr onizer.AbstractInboundFileSynchronizer.synchronize ToLocalDirectory(AbstractInboundFileSynchronizer.j ava:125)
... 9 more
Caused by: 2: No such file
at com.jcraft.jsch.ChannelSftp.throwStatusError(Chann elSftp.java:2108)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java :1676)
at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java: 1651)
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:11 98)
at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:71)
... 12 more


Reply With Quote
oller task-executor="custom-pool" fixed-rate="1000" />
