tonva / pojo-mbean

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

IllegalArgumentException accessing @ManagedAttributes and @ManagedOperations #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When an annotated MBean's accessor methods (attributes and operations) are not 
visible (methods are private or MBean class is a private inner class), the 
following happens:

# Readable attributes are shown as "Unavailable" in jconsole
# Operations return an "IllegalArgumentException" without further info.

Original issue reported on code.google.com by morten.h...@gmail.com on 12 Jul 2011 at 2:49

GoogleCodeExporter commented 9 years ago
Two causes:

  # accessor methods are not made explicitly visible using Method.setAccessible(true) 
prior to invoking them
  # when invoking a method that is not accessible, the thrown exception is wrapped in an IllegalArgumentException forgetting to include the cause exception.

Both of the above issues will be fixed in Version-1.1

Original comment by morten.h...@gmail.com on 12 Jul 2011 at 2:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r116.

Original comment by morten.h...@gmail.com on 12 Jul 2011 at 2:59