Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring集成:已传输SFTP[SftpInboundFileSynchronizer]0个文件_Spring_Spring Integration_Sftp - Fatal编程技术网

Spring集成:已传输SFTP[SftpInboundFileSynchronizer]0个文件

Spring集成:已传输SFTP[SftpInboundFileSynchronizer]0个文件,spring,spring-integration,sftp,Spring,Spring Integration,Sftp,下面是我正在使用的类: 12:47:57 INFO [jsch] Connecting to XXX.XX.XX.XXX port 1222 12:47:57 INFO [jsch] Connection established 12:47:58 INFO [jsch] Remote version string: SSH-2.0-OpenSSH_5.3 12:47:58 INFO [jsch] Local version string: SSH-2.0-JSCH-0.1.52 12:4

下面是我正在使用的类:

12:47:57  INFO [jsch] Connecting to XXX.XX.XX.XXX port 1222
12:47:57  INFO [jsch] Connection established
12:47:58  INFO [jsch] Remote version string: SSH-2.0-OpenSSH_5.3
12:47:58  INFO [jsch] Local version string: SSH-2.0-JSCH-0.1.52
12:47:58  INFO [jsch] CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-   cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
12:47:58  INFO [jsch] aes256-ctr is not available.
12:47:58  INFO [jsch] aes192-ctr is not available.
12:47:58  INFO [jsch] aes256-cbc is not available.
12:47:58  INFO [jsch] aes192-cbc is not available.
12:47:58  INFO [jsch] CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2- nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
12:47:58  INFO [jsch] diffie-hellman-group14-sha1 is not available.
12:47:58  INFO [jsch] CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
12:47:58  INFO [jsch] SSH_MSG_KEXINIT sent
12:47:58  INFO [jsch] SSH_MSG_KEXINIT received
12:47:58  INFO [jsch] kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
12:47:58  INFO [jsch] kex: server: ssh-rsa,ssh-dss
12:47:58  INFO [jsch] kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
12:47:58  INFO [jsch] kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
12:47:58  INFO [jsch] kex: server: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
12:47:58  INFO [jsch] kex: server: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
12:47:58  INFO [jsch] kex: server: none,zlib@openssh.com
12:47:58  INFO [jsch] kex: server: none,zlib@openssh.com
12:47:58  INFO [jsch] kex: server: 
12:47:58  INFO [jsch] kex: server: 
12:47:58  INFO [jsch] kex: client: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
12:47:58  INFO [jsch] kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
12:47:58  INFO [jsch] kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
12:47:58  INFO [jsch] kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
12:47:58  INFO [jsch] kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
12:47:58  INFO [jsch] kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
12:47:58  INFO [jsch] kex: client: none
12:47:58  INFO [jsch] kex: client: none
12:47:58  INFO [jsch] kex: client: 
12:47:58  INFO [jsch] kex: client: 
12:47:58  INFO [jsch] kex: server->client aes128-ctr hmac-md5 none
12:47:58  INFO [jsch] kex: client->server aes128-ctr hmac-md5 none
12:47:58  INFO [jsch] SSH_MSG_KEXDH_INIT sent
12:47:58  INFO [jsch] expecting SSH_MSG_KEXDH_REPLY
12:47:58  INFO [jsch] ssh_rsa_verify: signature true
12:47:58  INFO [jsch] Host 'XXX.XX.XX.XXX' is known and matches the RSA host key
12:47:58  INFO [jsch] SSH_MSG_NEWKEYS sent
12:47:58  INFO [jsch] SSH_MSG_NEWKEYS received
12:47:58  INFO [jsch] SSH_MSG_SERVICE_REQUEST sent
12:47:59  INFO [jsch] SSH_MSG_SERVICE_ACCEPT received
12:47:59 DEBUG [DefaultSftpSessionFactory] 
Warning! This is a private system. Unauthorized access to or use of
this system is strictly prohibited. By continuing, you acknowledge
your awareness of and concurrence with the CompanyABC's Acceptable Use
Policy. Unauthorized users may be subject to criminal and civil
prosecution under the law and are subject to disciplinary action under
CompanyABC policies.


12:47:59  INFO [jsch] Authentications that can continue: gssapi-with- mic,publickey,keyboard-interactive,password
12:47:59  INFO [jsch] Next authentication method: gssapi-with-mic
12:47:59  INFO [jsch] Authentications that can continue: publickey,keyboard-interactive,password
12:47:59  INFO [jsch] Next authentication method: publickey
12:48:00  INFO [jsch] Authentication succeeded (publickey).
12:48:01 DEBUG [SimplePool] Obtained new org.springframework.integration.sftp.session.SftpSession@46fdc558.
12:48:03 DEBUG [CachingSessionFactory] Releasing Session org.springframework.integration.sftp.session.SftpSession@46fdc558 back to the pool.
12:48:03 DEBUG [SimplePool] Removing org.springframework.integration.sftp.session.SftpSession@46fdc558 from the pool
12:48:03  INFO [jsch] Disconnecting from XXX.XX.XX.XXX port 1222
12:48:03 DEBUG [SftpInboundFileSynchronizer] 0 files transferred
12:48:03  INFO [jsch] Caught an exception, leaving main loop due to Socket Closed
12:48:03 DEBUG [SourcePollingChannelAdapter] Received no Message during the poll, returning 'false'
12:48:18  INFO [jsch] Connecting to XXX.XX.XX.XXX port 1222
我通过自己创建一个SFTP服务器来测试代码,它可以工作。但在生产环境中,它不会复制文件。我的理解是,对话(如下)引起了问题。如何关闭/接受或绕过它

sftp.host = XXX.XX.XX.XXX
sftp.allowUnknownKeys=true
sftp.sessionCacheSize=2
sftp.sessionWaitTimeout=200000
sftp.deleteRemoteFiles=false
sftp.remoteDirectory=/home/fath/to/folder
sftp.fileFilterPattern=*.eot
sftp.localDirectory=D\:\\test-ftp
sftp.privateKey = file\Private.txt
sftp.timeout=60000
sftp.privateKey-Test=classpath\:META-INF/keys/sftpTest
sftp.privateKeyPassphrase = *******
sftp.port = 1222
sftp.user = XXXX
sftp.password =

公司ABC政策
???这是自定义的,实际上来自于您的应用程序。此外,您的用户可能没有读取文件的权限,或者那里没有
.eot
文件。在将应用程序传送到真实服务器之前,您应该直接检查真实服务器。对不起,我已修复了我的评论。不小心按下了一个
Enter
:)@ArtemBilan:我用位客户端手动测试了SFTP。它工作正常,还有.eot文件。我使用按位SFTP创建了和SFTP服务器,并使用了与之相同的代码。但我不知道我尝试生产时缺少了什么。谢谢你的帮助。我理解你在当地的担忧。这就是我的观点:您应该确保您被授予的用户在远程生产SFTP服务器中具有适当的权限。只要咨询他们的管理员,确保你们都在同一个页面上。如果你想知道我的意见,你的代码没有问题。只是环境的问题。在这里,我们对您毫无用处。
公司ABC政策
???这是自定义的,实际上来自于您的应用程序。此外,您的用户可能没有读取文件的权限,或者那里没有
.eot
文件。在将应用程序传送到真实服务器之前,您应该直接检查真实服务器。对不起,我已修复了我的评论。不小心按下了一个
Enter
:)@ArtemBilan:我用位客户端手动测试了SFTP。它工作正常,还有.eot文件。我使用按位SFTP创建了和SFTP服务器,并使用了与之相同的代码。但我不知道我尝试生产时缺少了什么。谢谢你的帮助。我理解你在当地的担忧。这就是我的观点:您应该确保您被授予的用户在远程生产SFTP服务器中具有适当的权限。只要咨询他们的管理员,确保你们都在同一个页面上。如果你想知道我的意见,你的代码没有问题。只是环境的问题。在这里,我们对你毫无用处。
sftp.host = XXX.XX.XX.XXX
sftp.allowUnknownKeys=true
sftp.sessionCacheSize=2
sftp.sessionWaitTimeout=200000
sftp.deleteRemoteFiles=false
sftp.remoteDirectory=/home/fath/to/folder
sftp.fileFilterPattern=*.eot
sftp.localDirectory=D\:\\test-ftp
sftp.privateKey = file\Private.txt
sftp.timeout=60000
sftp.privateKey-Test=classpath\:META-INF/keys/sftpTest
sftp.privateKeyPassphrase = *******
sftp.port = 1222
sftp.user = XXXX
sftp.password =
12:47:59 DEBUG [DefaultSftpSessionFactory] 
Warning! This is a private system. Unauthorized access to or use of
this system is strictly prohibited. By continuing, you acknowledge
your awareness of and concurrence with the CompanyABC's Acceptable Use
Policy. Unauthorized users may be subject to criminal and civil
prosecution under the law and are subject to disciplinary action under
CompanyABC policies.