Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks on nested types #21

Open
MadMartian opened this issue Oct 27, 2021 · 2 comments
Open

Breaks on nested types #21

MadMartian opened this issue Oct 27, 2021 · 2 comments

Comments

@MadMartian
Copy link

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.

@uklimaschewski
Copy link
Owner

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?

@MadMartian
Copy link
Author

MadMartian commented Nov 16, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants