-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[GR-48812] Native builds fail with most recent GraalVM 17 versions #7089
Comments
Thank you for reporting this, we'll take a look into it shortly |
Hi, when I try to reproduce the issue, the build finishes successfully with |
sorry it's
It comes from the spring boot parent. |
@oubidar-Abderrahim have you had a chance to look at this yet? |
I managed to reproduce the issue, this is tracked internally at GR 48812 |
hey @oubidar-Abderrahim, is there any workaround for this issue that you could recommend for the time being? (besides sticking with an older version of graalvm) |
hey @loicottet, is there any workaround for this issue for the time being? this issue is getting more and more annoying and blocks me from releasing a new version of my project. I'd highly appreciate any hint to why this error occurs and what i could do to prevent it from happening for now (even if it is super hacky). This error now also started to happen in There have been quite a few changes up to that build (see here). I was unable to narrow down why this issue now occurrs here as well. Nothing related to kord or graalvm has really changed as the whole point of that branch was to update the underlying database to the most recent version. Somehow that also affected the native build. |
Hi @DarkAtra, thank you for bringing this up. The workaround for this issue is to add classes that show up in the second line of the error message to reflection metadata. In the error message above that would be I applied the following diff to the provided project and the image was built successfully:
|
Thanks for your response. The suggested fix works. |
Describe the issue
When building my project using one of the more recent GraalVM versions (
graalvm-jdk-17_macos-x64_bin/17.0.0/x64/graalvm-jdk-17.0.8+9.1
) the following error occurs:Optional$Missing
is implemented as follows:I don't get how the value of
constantNull
could change in this situation as it's literally aval
(e.g. final). Downgrading tograalvm-ce-java17-darwin/22.3.2/x64/graalvm-ce-java17-22.3.2
fixes the issue.Steps to reproduce the issue
git clone [email protected]:DarkAtra/v-rising-discord-bot.git
./mvnw -PnativeTest clean verify
There's also a github workflow run with the exact same environment and error here: https://github.com/DarkAtra/v-rising-discord-bot/actions/runs/5685610328/job/15410839417#step:4:448
Also, here's the run with the downgraded GraalVM version: https://github.com/DarkAtra/v-rising-discord-bot/actions/runs/5706950594/job/15463156901
Describe GraalVM and your environment:
The text was updated successfully, but these errors were encountered: