camel - ftp GenericFileOperationFailedException:文件操作失败:550 CWD失败

时间:2016-04-05 16:23:30

标签: ftp apache-camel

我的骆驼路线正试图从ftp服务器(Filezilla)下载并解压缩zip文件。

我的Ftp配置:

  • 根目录(主目录)设置为c:\

  • thg.ftp.incomingDir = / fileprocessor

  • thg.ftp.toDir = /解压

    <camel:route id="unziponFTP">
        <camel:from ref="ZipFileFrom"/> 
        <camel:unmarshal ref="zipFileDataFormat"/>
        <camel:split streaming="true">
            <camel:simple>${body}</camel:simple>                
            <camel:to ref="UnzippedFolder"/> 
        </camel:split>
    </camel:route>

解压缩文件夹名称:Week54_09Apr-15Apr

Camel能够正确解压缩zip文件,我也可以看到所有文件,但我看到了异常:

  

org.apache.camel.component.file.GenericFileOperationFailedException:   文件操作失败:550 CWD失败。 &#34; /解压/ Week54_09Apr-15Apr&#34 ;:   目录未找到。无法将目录更改为:Week54_09Apr-15Apr。   代码:550 at   org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:775)

0 个答案:

没有答案