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

Remove MBean-related entries from hibernate-core's metadata #113

Merged

Conversation

wilkinsona
Copy link
Contributor

@wilkinsona wilkinsona commented Nov 16, 2022

What does this PR do?

Hibernate's metadata contains entries for various MBean-related classes. This metadata causes a call to
ManagementFactory.getPlatformMBeanServer() to fail with a javax.management.openmbean.OpenDataException. It would appear that the metadata is sufficient for the bootstrapping of the MBean server to take a different code path to normal and this path fails. This PR removes the offending metadata which fixes ManagementFactory.getPlatformMBeanServer() and has no adverse effects on the existing tests for hibernate-core.

Checklist before merging

  • I have properly formatted metadata files (see CONTRIBUTING document)
  • I have added thorough tests. (see this)

No new tests have been added but the existing tests are unaffected by the changes.

Hibernate's metadata contains entries for various MBean-related
classes. This metadata causes a call to
ManagementFactory.getPlatformMBeanServer() to fail with a
javax.management.openmbean.OpenDataException. It would appear that
the metadata is sufficient for the bootstrapping of the MBean server
to take a different code path to normal and this path fails. Removing
the metadata fixes  ManagementFactory.getPlatformMBeanServer() and
has no adverse effects on the existing tests for hibernate-core.
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 this pull request may close these issues.

2 participants