Caused by: java.io.IOException: inputstream is closed
Hi,
I am getting the below exception while downloading the files and the jsch-0.1.45.jar is used.
The code is used:
roperties jschConfig =
new Properties();
jschConfig.setProperty(
"compression.s2c", "none");
jschConfig.setProperty(
"compression.c2s", "none");
jschConfig.setProperty(
"StrictHostKeyChecking", "no");
jschConfig.setProperty(
"PreferredAuthentications", "publickey,password");
session.setConfig(jschConfig);
session.connect();
sftpChannel = (ChannelSftp) session.openChannel(
"sftp");
sftpChannel.connect();
sftpChannel.get(remotePath, localPath);
Find the below error which am getting.
Caused by: 4:
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:1074)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:884)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:796)
at com.sns.mhbfs.filetransfer.JSchTransporter.download(JSchTransporter.java:344)
... 75 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2529)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2553)
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:985)
... 78 more
Kindly help me to resolve this case.
Thanks in advance.
Regards,
Chandraiah.V
请先登录再写评论。
This is PhpStorm forum.. perhaps you wanted to post this to IDEA/java one?