Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 389466116 for ; Wed, 13 Jul 2011 15:01:30 +0000 (UTC) Received: (qmail 88106 invoked by uid 500); 13 Jul 2011 15:01:30 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 88023 invoked by uid 500); 13 Jul 2011 15:01:29 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 88015 invoked by uid 99); 13 Jul 2011 15:01:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 15:01:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 15:01:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BB7F84E713 for ; Wed, 13 Jul 2011 15:01:01 +0000 (UTC) Date: Wed, 13 Jul 2011 15:01:01 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: dev@camel.apache.org Message-ID: <447772480.10117.1310569261764.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1546520437.9563.1310558521516.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4222) Ref component should throw exception if bean not found in registry MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated CAMEL-4222: ------------------------------- Fix Version/s: 2.7.3 > Ref component should throw exception if bean not found in registry > ------------------------------------------------------------------ > > Key: CAMEL-4222 > URL: https://issues.apache.org/jira/browse/CAMEL-4222 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.7.3, 2.8.0 > > > When you use the ref component and you refer to a non existing endpoint, then it silently returns null, causing Camel to fail with a different error saying the ref component cannot be found > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: ref://xxx due to: No component found with scheme: ref > It should use mandatoryLookup, and those methods should throw NoSuchBeanException instead of IllegalArgumentException as they currently does. Then the failure message is much more precise. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira