Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 47035 invoked from network); 11 Oct 2008 10:00:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 10:00:48 -0000 Received: (qmail 76047 invoked by uid 500); 11 Oct 2008 10:00:47 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 76028 invoked by uid 500); 11 Oct 2008 10:00:47 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 76017 invoked by uid 99); 11 Oct 2008 10:00:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 03:00:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.178] (HELO exsmtp02.exserver.dk) (195.69.129.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 09:59:41 +0000 Received: from EXVS04.exserver.dk ([10.10.10.84]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Sat, 11 Oct 2008 11:57:45 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: ObjectHelper - newInstance - minor bug with not wrapping correct caused exception Date: Sat, 11 Oct 2008 11:59:49 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D205AB7276@EXVS04.exserver.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ObjectHelper - newInstance - minor bug with not wrapping correct caused exception Thread-Index: AckriBk9zwpUWU89TMCHttDvF4uvvQ== From: "Claus Ibsen" To: X-OriginalArrivalTime: 11 Oct 2008 09:57:45.0151 (UTC) FILETIME=[CF137CF0:01C92B87] X-Virus-Checked: Checked by ClamAV on apache.org Hi I will commit a minor fix for ObjectHelper that hides the orginal cause = exception when instantiating a new class, eg using the bean type, such = as: = from("seda:errorTest").to("mock:a").bean(MyBadBean.class).to("mock:b"); Before: =3D=3D=3D=3D=3D=3D=3D org.apache.camel.RuntimeCamelException at = org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:607) After: =3D=3D=3D=3D=3D=3D=3D org.apache.camel.RuntimeCamelException: = java.lang.InstantiationException: = org.apache.camel.issues.BelasThreadErrorHandlerIssue901Test$MyBadBean at = org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:607) Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk