[CAMEL-11139] ClassNotFoundException may silently be ignored in InProducer
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c52bca5e Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c52bca5e Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c52bca5e Branch: refs/heads/camel-2.18.x Commit: c52bca5e1b7c0ba7c9f1b8ec8ba22d05ad8dcc40 Parents: bb68f96 Author: Thomas Diesler <[email protected]> Authored: Wed Apr 12 14:43:39 2017 +0200 Committer: Claus Ibsen <[email protected]> Committed: Wed Apr 12 20:58:20 2017 +0200 ---------------------------------------------------------------------- camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c52bca5e/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java b/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java index 1062029..bfd20f0 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java +++ b/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java @@ -504,7 +504,7 @@ public class ProducerCache extends ServiceSupport { // lets populate using the processor callback try { processor.process(exchange); - } catch (Exception e) { + } catch (Throwable e) { // populate failed so return exchange.setException(e); return exchange;
