-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
[GraalVM]: NotCompliantMBeanException #33677
Comments
This looks to be very similar to #33210 and I suspect that it has a similar cause. Specifically, I suspect that either your app or the reachability metadata for one of its dependencies has MBean-related entries that it should not have. If you can provide a minimal sample that reproduces the problem, we can help to pinpoint its cause. |
Hi, thank you for the quick reply, the project can be found here: https://github.com/smoell/spring-graalvm-issue How to reproduce:
|
Thanks for the sample. The problem's caused by your dependency on Undertow. Its reachability metadata contains MBean-related entries that are harmful. Your application isn't actually using Undertow anyway as it still has Tomcat on the classpath and it is preferred. This means that, until the reachability metadata is fixed, you can avoid the problem by removing the dependency on |
Thank you, will try! |
That solved the issue, thank you! |
Great. Thanks for letting us know. oracle/graalvm-reachability-metadata#161 will hopefully fix the problem with Undertow. |
Thanks. |
Hi all,
my Spring Boot 3 project runs fine if I use Java 17, but after AoT-compilation with GraalVM, I get the following error:
The text was updated successfully, but these errors were encountered: