NotCompliantMBeanException during cache creation

ioi.lam at oracle.com ioi.lam at oracle.com
Sun Mar 16 02:12:50 UTC 2025


Could you send the exact command-line that causes the error? If you can 
share a self-contain reproducible test case, that would be great!

Looking from the stack trace:

     at 
jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:542)
     at 
jdk.management.agent/jdk.internal.agent.Agent.startLocalManagementAgent(Agent.java:316)
     at 
jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:448)
     at 
jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:601)

It looks like you might have specified a Java agent in the "java 
-XX:AOTMode=create ...." command line. Can you try removing that and see 
if it works?

Thanks

- Ioi

On 3/15/25 3:48 AM, Gunnar Morling wrote:
> Hey all,
>
> I'm trying to run Apache Kafka with Project Leyden, using Java 
> build 24+36-3646.
>
> I am following the steps laid out in JEP 483, yet when trying to 
> create the ahead-of-time cache (via -XX:AOTMode=create 
> -XX:AOTConfiguration=app.aotconf -XX:AOTCache=app.aot), I'm getting 
> the following exception (full stacktrace at [1]):
>
> javax.management.NotCompliantMBeanException: 
> com.sun.management.UnixOperatingSystemMXBean: During -Xshare:dump, 
> module system cannot be modified after it's initialized
>
> Is there any way to analyse that problem, e.g. to identify the MBean 
> in question?
>
> Thanks for any pointers,
>
> --Gunnar
>
> [1] https://gist.github.com/gunnarmorling/264bfde458c71152336be6faab115563
>


More information about the leyden-dev mailing list