mioz2077 / pojo-mbean

Automatically exported from code.google.com/p/pojo-mbean
0 stars 0 forks source link

All exceptions from invoked methods are wrapped in IllegalArgumentException #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The invoke method in IntrospectedDynamicMBean wraps all exceptions from 
method.invoke(...) in IllegalArgumentException.

This makes it harder to signal error messages to the client.

Possible solution:
Method.invoke throws InvocationTargetException where the original exception can 
be accessed with getCause(). Rethrow the original exception wrapped in  an 
MBeanException. JConsole will then correctly show the cause.

Original issue reported on code.google.com by andre.bo...@gmail.com on 22 Apr 2013 at 8:58

GoogleCodeExporter commented 8 years ago

Original comment by Martin.B...@gmail.com on 17 May 2013 at 11:46

GoogleCodeExporter commented 8 years ago

Original comment by Martin.B...@gmail.com on 17 May 2013 at 11:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r151.

Original comment by Martin.B...@gmail.com on 20 May 2013 at 2:27