Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration SFTP Adapter Error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration SFTP Adapter Error

    I am getting this error every other day when the Spring Integration SFTP Adapter tries to download some files remotely.

    Spring Integration handles the error well because it will continue to poll the next day. So, is this an issue with jcraft? If so, does anyone know if they have a fix for it and what version it is fixed?


    2011-10-27 09:15:06,156 INFO [STDOUT] (task-scheduler-2) 27 Oct 2011 09:15:06 ERROR [org.springframework.integration.handler.LoggingHan dler] 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:144)
    at org.springframework.integration.file.remote.synchr onizer.AbstractInboundFileSynchronizingMessageSour ce.receive(AbstractInboundFileSynchronizingMessage Source.java:144)
    at org.springframework.integration.endpoint.SourcePol lingChannelAdapter.doPoll(SourcePollingChannelAdap ter.java:94)
    at org.springframework.integration.endpoint.AbstractP ollingEndpoint$1.call(AbstractPollingEndpoint.java :146)
    at org.springframework.integration.endpoint.AbstractP ollingEndpoint$1.call(AbstractPollingEndpoint.java :144)
    at org.springframework.integration.endpoint.AbstractP ollingEndpoint$Poller$1.run(AbstractPollingEndpoin t.java:207)
    at org.springframework.integration.util.ErrorHandling TaskExecutor$1.run(ErrorHandlingTaskExecutor.java: 52)
    at org.springframework.core.task.SyncTaskExecutor.exe cute(SyncTaskExecutor.java:48)
    at org.springframework.integration.util.ErrorHandling TaskExecutor.execute(ErrorHandlingTaskExecutor.jav a:49)
    at org.springframework.integration.endpoint.AbstractP ollingEndpoint$Poller.run(AbstractPollingEndpoint. java:202)
    at org.springframework.scheduling.support.DelegatingE rrorHandlingRunnable.run(DelegatingErrorHandlingRu nnable.java:51)
    at org.springframework.scheduling.concurrent.Reschedu lingRunnable.run(ReschedulingRunnable.java:81)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:207)
    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:619)
    Caused by: org.springframework.core.NestedIOException: Failed to list files; nested exception is 4:
    at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:87)
    at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:46)
    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:133)
    ... 19 more
    Caused by: 4:
    at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java :1751)
    at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java :1758)
    at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:11 96)
    at org.springframework.integration.sftp.session.SftpS ession.list(SftpSession.java:75)
    ... 22 more
    Caused by: java.io.IOException: Pipe closed
    at java.io.PipedInputStream.read(PipedInputStream.jav a:291)
    at java.io.PipedInputStream.read(PipedInputStream.jav a:361)
    at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java: 2325)
    at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.jav a:2351)
    at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java :1732)
    ... 25 more
    2011-10-27 09:15:06,171 INFO [STDOUT] (Connect thread xfr.ebx.td.com session) 27 Oct 2011 09:15:06 INFO [com.jcraft.jsch] Caught an exception, leaving main loop due to SSH_MSG_DISCONNECT: 2 SSH_MSG_CHANNEL_DATA received with invalid channel id 0
    2011-10-27 09:15:06,171 INFO [STDOUT] (Connect thread xfr.ebx.td.com session) 27 Oct 2011 09:15:06 INFO [com.jcraft.jsch] Disconnecting from xfr.ebx.td.com port 2022
Working...
X