[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/c05d7763 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c05d7763 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c05d7763 Branch: refs/heads/camel-2.17.x Commit: c05d77633b1b1cc7720636011e66801c242bd93a Parents: bd221e8 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:46 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/c05d7763/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 9be2825..3a45e3e 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 @@ -387,7 +387,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;
