karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Improving exceptions Handling in BundlesMBeanImpl
Date Tue, 01 Apr 2014 13:33:30 GMT
Hi Filippo,

It's not due to security, it's due to a limitation/bug in Aries JMX: 
it's not possible to cleanly return something else than MBeanException 
(else we may have NotSerializableException).

If you take a look on Karaf 2.x, it was different as we don't use Aries 
JMX: so we returned "clean" exception.

I planned to change it on 3.x as soon as a fix will be available on 
Aries JMX.


On 04/01/2014 03:30 PM, Filippo Balicchia wrote:
> Hi,
> In BundlesMBeanImpl I see that exceptions are wrapper thrown new
> MBeanException using getMessage method without use of Throwable.
> The use e.getMessage make hard debug because the reason of the failure is
> lost.
> In this case this beavior, is  desired for security reasons ?
> What I propose is to improve the management of the exception even using the
> error message displaying the error also.
> WDYT ?
> Thanks
> --Filippo

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message