Ftp Mule异常策略不会停止处理流

Ftp Mule异常策略不会停止处理流,ftp,mule,esb,Ftp,Mule,Esb,我有下面的场景。如果由于某种原因FTP上载失败(在本例中,我输入了错误的凭据),则会正确调用catch exception策略,但我仍会在日志文件中看到消息upload complete. 为什么流在异常发生后继续执行 <flow name="mainFlow" doc:name="mainFlow"> <vm:inbound-endpoint path="test" exchange-pattern="one-way" /> <choice>

我有下面的场景。如果由于某种原因FTP上载失败(在本例中,我输入了错误的凭据),则会正确调用catch exception策略,但我仍会在日志文件中看到消息
upload complete.

为什么流在异常发生后继续执行

<flow name="mainFlow" doc:name="mainFlow">
    <vm:inbound-endpoint path="test" exchange-pattern="one-way" />

    <choice>
        <when expression="#[flowVars.fileToUpload != null]">
            <set-payload value="#[flowVars.fileToUpload]" /> 
            <ftp:outbound-endpoint host="${ftp.host}" port="${ftp.port}" user="${ftp.username}" password="${ftp.password}" path="${ftp.path.input}"  outputPattern="#[flowVars.fileName]" /> 
        </when>
        <otherwise>
            <logger doc:name="Logger"/>
        </otherwise>
    </choice>

    <logger message="Upload complete." level="INFO" />

    <catch-exception-strategy>
        <logger doc:name="Exception occurred"/>
    </catch-exception-strategy>
</flow>

因为传入的MuleEvent是异步的。尝试将ProcessingStrategy=“synchronous”设置为关闭状态:

<flow name="mainFlow" doc:name="mainFlow" processingStrategy="synchronous">
    ....
</flow>

....