Apache camel 骆驼FTP:如何记录未知主机异常或连接失败

Apache camel 骆驼FTP:如何记录未知主机异常或连接失败,apache-camel,camel-ftp,Apache Camel,Camel Ftp,我有一些骆驼配置,就是这个 <from uri="ftp://user@testserverx?password=password&amp;throwExceptionOnConnectFailed=true&amp;disconnect=true&amp;passiveMode=true&amp;noop=true&amp;idempotent=false" /> 我希望在日志中看到一些关于无法连接到testserverx的错误 但我没

我有一些骆驼配置,就是这个

  <from uri="ftp://user@testserverx?password=password&amp;throwExceptionOnConnectFailed=true&amp;disconnect=true&amp;passiveMode=true&amp;noop=true&amp;idempotent=false" />
我希望在日志中看到一些关于无法连接到testserverx的错误 但我没有

有人知道为什么吗

注:


camel ftp:2.13.2

如果使用您的设置,将记录以下预期错误:

原因:java.net.UnknownHostException:testserverx

请确保骆驼上下文在第一次ftp轮询之前保持活动状态。如果使用org.apache.camel.spring.Main,例如,使用run方法。这将运行进程,并等待完成,或者JVM终止:

final Main main = new Main();
main.setApplicationContextUri("path/to/spring/application/context.xml"); 
main.run();