起了个定时任务每天凌晨12点会从数据库查询出数据传输到ftp上,以前都是正常的,最近突然报错了。
在ftp上只是新建了相应的文件,但里面内容为空报错信息如下:org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
at org.apache.commons.net.io.Util.copyStream(Util.java:129)
at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:436)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1548)
at com.coship.util.FtpUtil.upload(FtpUtil.java:254)
at com.coship.service.VUserSubService.queryAssetType(VUserSubService.java:69)
at com.coship.main.VUserSubSchedule$1.soundAlarm(VUserSubSchedule.java:35)
at com.coship.main.VUserSubSchedule$1.run(VUserSubSchedule.java:31)
at org.tiling.scheduling.Scheduler$SchedulerTimerTask.run(Unknown Source)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
,另外白天我在本地eclipse里跑起来又是正常的,各位帮忙看看问题出在哪里???