Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D852A200C5B for ; Wed, 12 Apr 2017 15:13:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7144160B8A; Wed, 12 Apr 2017 13:13:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2D6D3160B95 for ; Wed, 12 Apr 2017 15:13:46 +0200 (CEST) Received: (qmail 36753 invoked by uid 500); 12 Apr 2017 13:13:45 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 36718 invoked by uid 99); 12 Apr 2017 13:13:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2017 13:13:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DF3C2181059 for ; Wed, 12 Apr 2017 13:13:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Maa_zdtY-ZTI for ; Wed, 12 Apr 2017 13:13:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 66B0B5FB5B for ; Wed, 12 Apr 2017 13:13:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F1834E0026 for ; Wed, 12 Apr 2017 13:13:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AD41420D1F for ; Wed, 12 Apr 2017 13:13:41 +0000 (UTC) Date: Wed, 12 Apr 2017 13:13:41 +0000 (UTC) From: "Thomas Diesler (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-11139) ClassNotFoundException may silently be ignored in InProducer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Apr 2017 13:13:47 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Diesler updated CAMEL-11139: ----------------------------------- Summary: ClassNotFoundException may silently be ignored in InProducer (was: Exchange not created in ProducerCache) > ClassNotFoundException may silently be ignored in InProducer > ------------------------------------------------------------ > > Key: CAMEL-11139 > URL: https://issues.apache.org/jira/browse/CAMEL-11139 > Project: Camel > Issue Type: Bug > Affects Versions: 2.18.3 > Reporter: Thomas Diesler > Assignee: Thomas Diesler > Fix For: 2.18.4, 2.19.0 > > > [ProducerCache.doInProducer()|https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/ProducerCache.java#L348] may be called with null exchange. > The javadoc says > {code} > /** > * Sends an exchange to an endpoint using a supplied callback, using the synchronous processing. > *

> * If an exception was thrown during processing, it would be set on the given Exchange > * > * @param endpoint the endpoint to send the exchange to > * @param exchange the exchange, can be null if so then create a new exchange from the producer > * @param pattern the exchange pattern, can be null > * @param callback the callback > * @return the response from the callback > * @see #doInAsyncProducer(org.apache.camel.Endpoint, org.apache.camel.Exchange, org.apache.camel.ExchangePattern, org.apache.camel.AsyncCallback, org.apache.camel.AsyncProducerCallback) > */ > public T doInProducer(Endpoint endpoint, Exchange exchange, ExchangePattern pattern, ProducerCallback callback) { > {code} > The exchange is however never created, which may result in a null return from ProducerTemplate and a possible exception silently being ignored. -- This message was sent by Atlassian JIRA (v6.3.15#6346)