Open mpeddada1 opened 2 years ago
FTR @mpeddada1 found that this issue is caused by registering java.lang.management.ManagementFactory
and java.lang.management.RuntimeMXBean
for reflection, removing these registrations seems to fix the issue (see https://github.com/GoogleCloudPlatform/native-image-support-java/pull/395). Note however that it might still be worth fixing this issue since there might be some legitimate case that requires those classes to be registered for reflection.
I have the same error, is there any solution?
same issue here
Any update on this issue, please as we are still observing the issue with graal version 22.1.0?
same issue +1
Describe the issue Upgrading to the latest graal-sdk (22.1.0) is causing a failure at image build time. Note that this used to work fine with 22.0.0.2.
Describe GraalVM and your environment:
The code experiencing the issue transitively brings in a dependency that contains the following pom.xml setup:
Java setup:
More details Running the native image build with the
--trace-class-initialization=com.sun.management.internal.HotSpotDiagnostic
results in:I was wondering if anyone had seen this error message before? There were a couple of recent changes made to
JfrFeature.class
, which may be related? This issue from a previous GraalVM version looks similar: https://github.com/oracle/graal/issues/2669.