2008/10/11 Claus Ibsen <[EMAIL PROTECTED]>: > 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: > ======= > org.apache.camel.RuntimeCamelException > at > org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:607) > > After: > ======= > org.apache.camel.RuntimeCamelException: java.lang.InstantiationException: > org.apache.camel.issues.BelasThreadErrorHandlerIssue901Test$MyBadBean > at > org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:607)
Great stuff! :) -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/