JMXWrapper icon indicating copy to clipboard operation
JMXWrapper copied to clipboard

Breaks on nested types

Open MadMartian opened this issue 3 years ago • 2 comments

This seems to work well according to the instructions but it falls short when JMC (Java Mission Control) tries to render objects (even just PoJos) that are attributes of the top-level JMX bean. In JMC all that is displayed for these attributes is "N/A".

In the logs there is a classic "ClassNotFoundException" with the message that the RMI class loader is not enabled.

MadMartian avatar Oct 27 '21 04:10 MadMartian

How can this be reproduced manually or even better by a unit test? Do you have any idea for a fix or pointers where the problem is in the code?

uklimaschewski avatar Nov 01 '21 09:11 uklimaschewski

My guess is that com.sun.jmx.mbeanserver.MXBeanSupport of the Java v1.8 RT library clobbers the attributes with POJO reflection introspection. See com.sun.jmx.mbeanserver.MXBeanIntrospector#getMBeanAttributeInfo in particular (again, this may have been fixed since Java 1.8)

MadMartian avatar Nov 16 '21 03:11 MadMartian