Hyperfoil / Horreum

Benchmark results repository service
https://horreum.hyperfoil.io/
Apache License 2.0
39 stars 31 forks source link

Horreum fails to build on JDK23 #2043

Open johnaohara opened 1 month ago

johnaohara commented 1 month ago

Describe the bug

Horreum fails to build on jdk23 with the following error;

$ java -version
openjdk version "23" 2024-09-17
OpenJDK Runtime Environment Homebrew (build 23)
OpenJDK 64-Bit Server VM Homebrew (build 23, mixed mode, sharing)

...
        Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchMethodError: 'void sun.misc.Unsafe.ensureClassInitialized(java.lang.Class)' [in thread "executor-thread-3"]
                at com.oracle.truffle.api.library.LibraryFactory.ensureLibraryInitialized(LibraryFactory.java:385)
lampajr commented 1 month ago

For the records, I tried running mvn clean install -DskipTests -DskipITs and the build looks working using jdk23:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Horreum 0.16-SNAPSHOT:
[INFO] 
[INFO] Horreum ............................................ SUCCESS [  1.210 s]
[INFO] horreum-api ........................................ SUCCESS [ 16.554 s]
[INFO] Horreum Client ..................................... SUCCESS [  0.601 s]
[INFO] Horreum infra - common ............................. SUCCESS [  0.814 s]
[INFO] Horreum Dev Services - Parent ...................... SUCCESS [  0.019 s]
[INFO] Horreum Dev Services - Runtime ..................... SUCCESS [  0.845 s]
[INFO] Horreum Dev Services - Deployment .................. SUCCESS [  0.884 s]
[INFO] Horreum Backend .................................... SUCCESS [ 41.774 s]
[INFO] Horreum Integration Tests .......................... SUCCESS [ 10.138 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:15 min
[INFO] Finished at: 2024-10-01T15:34:18+02:00
[INFO] ------------------------------------------------------------------------

Env:

$ java -version
openjdk version "23" 2024-09-17
OpenJDK Runtime Environment Temurin-23+37 (build 23+37)
OpenJDK 64-Bit Server VM Temurin-23+37 (build 23+37, mixed mode, sharing)
$ mvn -version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /home/alampare/.sdkman/candidates/maven/current
Java version: 23, vendor: Eclipse Adoptium, runtime: /home/alampare/.sdkman/candidates/java/23-tem
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.10.7-200.fc40.x86_64", arch: "amd64", family: "unix"

Maybe the issue is related to the specific Homebrew jdk23 :thinking:

johnaohara commented 1 month ago

@lampajr thanks for checking

Maybe the issue is related to the specific Homebrew jdk23 🤔

possibly. I can check

lampajr commented 1 month ago

@johnaohara I hit a similar issue when trying to execute a jar using jdk23 but that jar was built using jdk17.. so that might be the issue