I do not get the exception when using Graal v19.3.1
I also do not get the exception when using Java: version 11.0.6
... Receiver class org.graalvm.compiler.hotspot.management.HotSpotGraalManagement does not define or inherit an implementation of the resolved method 'abstract void initialize(org.graalvm.compiler.hotspot.HotSpotGraalRuntime, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig)...
JVM: Java HotSpot(TM) 64-Bit Server VM (13.0.1+9, mixed mode)
Java: version 13.0.1, vendor Oracle Corporation
JVM_ARGS
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:65442,suspend=y,server=n
-Dvisualvm.id=99942296255963
-XX:+UnlockExperimentalVMOptions
-XX:+EnableJVMCI
--module-path=build/libs/graal-sdk.jar:build/libs/truffle-api.jar
--upgrade-module-path=build/libs/compiler.jar
-XX:TieredStopAtLevel=1
-Xverify:none
-Dspring.output.ansi.enabled=always
-Dcom.sun.management.jmxremote
-Dspring.jmx.enabled=true
-Dspring.liveBeansView.mbeanDomain
-Dspring.application.admin.enabled=true
-Dfile.encoding=UTF-8
org.graalvm.polyglot.PolyglotException: java.lang.AbstractMethodError: Receiver class org.graalvm.compiler.hotspot.management.HotSpotGraalManagement does not define or inherit an implementation of the resolved method 'abstract void initialize(org.graalvm.compiler.hotspot.HotSpotGraalRuntime, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig)' of interface org.graalvm.compiler.hotspot.HotSpotGraalManagementRegistration.
1 at org.graalvm.compiler.hotspot.HotSpotGraalRuntime.<init> (HotSpotGraalRuntime.java:178)
2 at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler (HotSpotGraalCompilerFactory.java:156)
3 at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler (HotSpotGraalCompilerFactory.java:134)
4 at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler (HotSpotGraalCompilerFactory.java:52)
5 at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getCompiler (HotSpotJVMCIRuntime.java:627)
6 at org.graalvm.compiler.truffle.compiler.hotspot.HotSpotTruffleCompilerImpl.getCompiler (HotSpotTruffleCompilerImpl.java:138)
7 at org.graalvm.compiler.truffle.compiler.hotspot.HotSpotTruffleCompilerImpl.create (HotSpotTruffleCompilerImpl.java:115)
8 at org.graalvm.compiler.truffle.runtime.hotspot.java.HotSpotTruffleRuntime.newTruffleCompiler (HotSpotTruffleRuntime.java:94)
9 at org.graalvm.compiler.truffle.runtime.hotspot.AbstractHotSpotTruffleRuntime.initializeTruffleCompiler (AbstractHotSpotTruffleRuntime.java:238)
10 at org.graalvm.compiler.truffle.runtime.hotspot.AbstractHotSpotTruffleRuntime.access$100 (AbstractHotSpotTruffleRuntime.java:84)
11 at org.graalvm.compiler.truffle.runtime.hotspot.AbstractHotSpotTruffleRuntime$1.execute (AbstractHotSpotTruffleRuntime.java:206)
12 at org.graalvm.compiler.truffle.runtime.BackgroundCompileQueue$RequestImpl.call (BackgroundCompileQueue.java:195)
13 at java.util.concurrent.FutureTask.run (FutureTask.java:264)
14 at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
15 at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
16 at java.lang.Thread.run (Thread.java:830)
17 at org.graalvm.compiler.truffle.runtime.BackgroundCompileQueue$TruffleCompilerThreadFactory$1.run (BackgroundCompileQueue.java:238)
Hi @brettanomyces
thanks for your report. I understand this might be caused by a known issue that JDK13 provides an incompatible HotSpotGraalManagement class. Both JDK11 and JDK14 (!) should work fine, though.
I couldn't find a open ticket on https://github.com/oracle/graal/issues, will ask the GraalVM Compiler team if there is one.
Edit: the problem is most likely fixed by GraalVM 20.0.1 (Enterprise Edition already available on https://www.oracle.com/downloads/graalvm-downloads.html, Community Edition will follow shortly).
Best,
Christian
The problem is caused by incompatibility in the HotSpotGraalManagement, the JDK-14 should work fine. The issue is already fixed by https://github.com/oracle/graal/commit/a9e215d375076ca808232cac84bfb9845c3acf22 in development versions and will be back ported inot GraalVM-20.0.
Most helpful comment
The problem is caused by incompatibility in the
HotSpotGraalManagement, the JDK-14 should work fine. The issue is already fixed by https://github.com/oracle/graal/commit/a9e215d375076ca808232cac84bfb9845c3acf22 in development versions and will be back ported inot GraalVM-20.0.