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

Support java.util.Map type for JMX Adapter #532

Closed
piotrwielgolaski-tomtom opened this issue Nov 9, 2022 · 5 comments · Fixed by #538
Closed

Support java.util.Map type for JMX Adapter #532

piotrwielgolaski-tomtom opened this issue Nov 9, 2022 · 5 comments · Fixed by #538

Comments

@piotrwielgolaski-tomtom
Copy link

piotrwielgolaski-tomtom commented Nov 9, 2022

I have bean that return data in from of Map<String, Boolean>

Jolokia read it correctly, but fails on parsing

I dig into internal and problem is with type conversion
image
it assume it is custom type with field empty

so later in CompositeTypeConverter all fields are ignored

image

here is metadata from JMX console
image

I wonder if we missing some converter ?

@skarsaune
Copy link
Contributor

@piotrwielgolaski-tomtom : Thanks for the report. I can try to reproduce this in a test. Normally the problem is the other way around ... that we get Map compatible JSON, but need to return CompositeData instead ....

@skarsaune
Copy link
Contributor

Was just able to reproduce in a test, will investigate a solution

@skarsaune
Copy link
Contributor

@piotrwielgolaski-tomtom : See above PR #538 , if you want you can pull it and test it in your usecase.

@piotrwielgolaski-tomtom
Copy link
Author

@skarsaune I put my finding in PR #538

@skarsaune
Copy link
Contributor

Thanks @piotrwielgolaski-tomtom that was reall helpful. Should be fixed in #538 now

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

Successfully merging a pull request may close this issue.

2 participants