ftp Connection closed without indication.上传失败

org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.

出现这个问题可能的情况

1你的端口号写错啦!!!!这个是我的情况 默认21= =狗日同事给我虚假信息

2可能启用了ssl= ======也就是ftps   这种情况要用FTPSClient创建类并CONNECT  并且FTPSClient ftpClient = new FTPSClient("SSL",true); 这么创建!!!


OK完毕

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章