为什么骆驼在FTP回复125上抛出异常?

时间:2018-12-06 14:06:33

标签: exception ftp zos camel-ftp ftp-reply-125

...
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed:
    125 Storing data set TEST.TRANSFER.FB80.TXT
 IOException caught while copying.. Code: 125
  at org.apache.camel.component.file.remote.FtpOperations.doStoreFile(FtpOperations.java:710)
  ...

RFC 959读为:

125   Data connection already open; transfer starting.

这不是提供更多信息,而是提供更多信息,不是吗?

1 个答案:

答案 0 :(得分:0)

FTP回复代码125只是故事的一半。使用Windows 7的命令行ftp客户端手动执行传输会显示:

ftp> send TRANSFER.FB80.TXT
---> PORT 10,100,113,251,254,235
200 Port request OK.
---> STOR TRANSFER.FB80.TXT
125 Storing data set TEST.TRANSFER.FB80.TXT
451-Error: Name=CkResults (Write) RC=-13
451-System completion code and reason: B37-04
451-Data set is out of space.
451-Error (1013) closing the data set.
451 Transfer aborted due to file error.
...

我创建了相应的问题CAMEL-13069: Display proper FTP reply message in case of transfer error