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

[4.x] Sample MP database app fails to compile w/JDK 22 (Native Image) #8863

Open
lprimak opened this issue Jun 9, 2024 · 4 comments
Open
Assignees
Labels
graal native-image wontfix This will not be worked on
Projects

Comments

@lprimak
Copy link

lprimak commented Jun 9, 2024

Continuation of #8096
JDK 21 works, but JDK 22 doesn't
Great progress, but not quite there (yet)

Environment Details

  • Helidon Version: 4.0.10
  • Helidon MP
  • JDK version: 22.0.1-GraalCE
  • OS: Mac
  • Docker version (if applicable): N/A

Steps to reproduce

  • Generate Hibernate-based MP sample app via Helidon CLI
  • Compile into native image
  • See errors happen

Problem Description

Graal compilaion fails:
See #8096 (comment)

@github-actions github-actions bot added this to Triage in Backlog Jun 9, 2024
@lprimak lprimak changed the title [4.x] Sample MP database app fails to compile (Native Image) [4.x] Sample MP database app fails to compile 2/JDK 22 (Native Image) Jun 9, 2024
@lprimak lprimak changed the title [4.x] Sample MP database app fails to compile 2/JDK 22 (Native Image) [4.x] Sample MP database app fails to compile w/JDK 22 (Native Image) Jun 9, 2024
@lprimak
Copy link
Author

lprimak commented Jun 13, 2024

Tested with Helidon 4.0.10 and it still doesn't work

@tomas-langer
Copy link
Member

Hello, Helidon 4.x supports GraalVM for Java 21 only.
For each major version of Helidon, we choose one version of GraalVM to support for native image (there are no restriction for hotspot mode, of course).

The reason is that with each newer version of GraalVM, there are usually some changes we need to do to our code base, and we currently cannot support multiple versions in parallel.

Although Helidon 4.x supports Java 21+ (i.e. version 21 or higher), we do not claim this support for GraalVM native image, where it must be GraalVM for Java 21 specifically

@tomas-langer tomas-langer added wontfix This will not be worked on and removed triage labels Jun 17, 2024
@tomas-langer tomas-langer self-assigned this Jun 17, 2024
@tomas-langer tomas-langer moved this from Triage to Sprint Scope in Backlog Jun 17, 2024
@tomas-langer
Copy link
Member

List of prerequisites:
https://helidon.io/docs/v4/about/prerequisites

And the mention of GraalVM version (just in a guide, we need to improve this):
https://helidon.io/docs/v4/mp/guides/graalnative

@lprimak
Copy link
Author

lprimak commented Jun 17, 2024

Understood. However, it would be nice to have some sort of a workaround to get it to work.
Also, since there was an issue about running with GraalVM 23-ea I thought that 22 would for sure work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graal native-image wontfix This will not be worked on
Projects
Backlog
  
Sprint Scope
Development

No branches or pull requests

4 participants