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

camel-ftp GenericFileOperationFailedException:文件操作失败:550 CWD失败,ftp,apache-camel,Ftp,Apache Camel,我的驼峰路线是尝试从ftp服务器(Filezilla)下载并解压缩一个zip文件 我的Ftp配置: 根目录(主目录)设置为c:\ thg.ftp.incomingDir=/fileprocessor thg.ftp.toDir=/unzip ${body} 解压文件夹名称:Week54_09Apr-15Apr Camel能够正确解压zip文件,我也可以看到所有文件,但我看到了一个例外: org.apache.camel.component.file.GenericFileOperat

我的驼峰路线是尝试从ftp服务器(Filezilla)下载并解压缩一个zip文件

我的Ftp配置:

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

  • thg.ftp.incomingDir=/fileprocessor

  • thg.ftp.toDir=/unzip


${body}
解压文件夹名称:Week54_09Apr-15Apr

Camel能够正确解压zip文件,我也可以看到所有文件,但我看到了一个例外:

org.apache.camel.component.file.GenericFileOperationFailedException: 文件操作失败:550 CWD失败。“/unzip/Week54_09Apr-15Apr”: 找不到目录。无法将目录更改为:Week54_09Apr-15Apr。 代码:550 at org.apache.camel.component.file.remote.FtpOperations.dochangeditory(FtpOperations.java:775)

    <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>