在使用换了commons-net 的 FTPClient 调用storeFile方法时报错,

调用

res = ftp.storeFile(remoteFileName, inputStream);
后返回true,并且文件能正常上传,但是抛出
java.net.SocketException: Socket closed
异常。

 

解决:

更新commons-net  jar包,从3.0升到3.4 该问题消失了。

 

相关文章:

  • 2022-12-23
  • 2021-10-12
  • 2021-10-29
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-02-24
相关资源
相似解决方案