Skip to content
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

Horreum fails to build on JDK23 #2043

Open
johnaohara opened this issue Oct 1, 2024 · 3 comments
Open

Horreum fails to build on JDK23 #2043

johnaohara opened this issue Oct 1, 2024 · 3 comments
Labels
type/bug Something isn't working

Comments

@johnaohara
Copy link
Member

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)
@johnaohara johnaohara added the type/bug Something isn't working label Oct 1, 2024
@lampajr
Copy link
Member

lampajr commented Oct 1, 2024

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 🤔

@johnaohara
Copy link
Member Author

@lampajr thanks for checking

Maybe the issue is related to the specific Homebrew jdk23 🤔

possibly. I can check

@lampajr
Copy link
Member

lampajr commented Oct 1, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants