当用SftpInboundFileSynchronizer
对象配置的远程目录不存在时,我们陷入无限循环的情况。
错误[task-scheduler-3] [org.springframework.integration.handler.LoggingHandler] org.springframework.messaging.MessagingException:将远程同步到本地目录时出现问题;嵌套的异常是org.springframework.messaging.MessagingException:无法在会话上执行;嵌套的异常是org.springframework.core.NestedIOException:无法列出文件。嵌套异常为2:找不到文件:/ users / biztalk / inbound / dev / user1 在org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer.synchronizeToLocalDirectory(AbstractInboundFileSynchronizer.java:303) 在org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizingMessageSource.doReceive(AbstractInboundFileSynchronizingMessageSource.java:200) 引起原因:org.springframework.core.NestedIOException:无法列出文件。嵌套异常为2:找不到文件: