错误原型:能够删除,上传时可以创建文件夹,但是无法写入,好长时间返回如下错误:
Server Reply: : A remote host did not respond within the timeout period. org.apache.commons.net.MalformedServerReplyException: Could not parse response code. Server Reply: : A remote host did not respond within the timeout period. at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:337) at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:483) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:608) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:582) at org.apache.commons.net.ftp.FTP.quit(FTP.java:864) at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:1109) at com.tlf.utils.file.FtpUploadUtils.uploadFile(FtpUploadUtils.java:77) at com.tlf.service.quartz.ScheduledProcess.quartzProcess(ScheduledProcess.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:299) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:111) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
出错原因:防火墙进行了拦截
解决办法:关闭防火墙