FTP每次上次都出错!求解
FTP单线程上传图片,不定时出现上次失败错误,而且每次都是这个地方出异常,* @return True if successfully completed, false if not.
1234 * @exception FTPConnectionClosedException
1235 * If the FTP server prematurely closes the connection as a result
1236 * of the client being idle or some other reason causing the server
1237 * to send FTP reply code 421. This exception may be caught either
1238 * as an IOException or independently as itself.
1239 * @exception IOException If an I/O error occurs while either sending a
1240 * command to the server or receiving a reply from the server.
1241 ***/
1242 public boolean completePendingCommand() throws IOException
1243 {
1244 return FTPReply.isPositiveCompletion(getReply());
1245 }
1246
求高人解答!
补充:Java , Java EE