Spring integration 使用int sftp:出站网关在网关发送和接收中发生故障

Spring integration 使用int sftp:出站网关在网关发送和接收中发生故障,spring-integration,Spring Integration,我能够使用Bitvise SFTP访问客户端工具登录到SFTP位置,只需userid和pswd。 因此,我尝试使用int-sftp:outbound-gateway,并通过使用userid和pswd访问sftp位置,但不使用任何密钥文件,并获得以下错误。我的问题是:我们能否仅通过应用程序使用ID、Pswd访问SFTP位置 WARNING: failure occurred in gateway sendAndReceive Throwable occurred: org.springframew

我能够使用Bitvise SFTP访问客户端工具登录到SFTP位置,只需
userid
pswd
。 因此,我尝试使用
int-sftp:outbound-gateway
,并通过使用
userid
pswd
访问sftp位置,但不使用任何密钥文件,并获得以下错误。我的问题是:我们能否仅通过应用程序使用ID、Pswd访问SFTP位置

WARNING: failure occurred in gateway sendAndReceive
Throwable occurred: org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.sftp.gateway.SftpOutboundGateway#0]
    at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:79)
    at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:115)
    at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:102)
    at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
    at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:178)
    at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:149)
    at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:330)
    at org.springframework.integration.core.MessagingTemplate.doSendAndReceive(MessagingTemplate.java:361)
    at org.springframework.integration.core.MessagingTemplate.sendAndReceive(MessagingTemplate.java:274)
    at org.springframework.integration.core.MessagingTemplate.convertSendAndReceive(MessagingTemplate.java:315)
    at org.springframework.integration.gateway.MessagingGatewaySupport.doSendAndReceive(MessagingGatewaySupport.java:225)
    at org.springframework.integration.gateway.MessagingGatewaySupport.sendAndReceive(MessagingGatewaySupport.java:204)
    at org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:323)
    at org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:286)
    at org.springframework.integration.gateway.GatewayProxyFactoryBean.invoke(GatewayProxyFactoryBean.java:277)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at $Proxy10.lsGetAndRmFiles(Unknown Source)
    at com.farmers.csi.batchutil.service.CopyOfSchedulerServiceImplDup.main(CopyOfSchedulerServiceImplDup.java:93)
Caused by: java.lang.IllegalStateException: failed to create SFTP Session
    at org.springframework.integration.sftp.session.DefaultSftpSessionFactory.getSession(DefaultSftpSessionFactory.java:321)
    at org.springframework.integration.file.remote.RemoteFileTemplate.execute(RemoteFileTemplate.java:293)

尝试打开
log4j.category.com.jcraft.jsch=DEBUG
并查看错误后的日志。尝试打开
log4j.category.com.jcraft.jsch=DEBUG
并查看错误后的日志。