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
Spring boot 3.1.0 native build (windows exe) won't start #35569
Comments
This looks like a duplicate of spring-projects/spring-framework#30492. Can you please try with 6.0.10-SNAPSHOT of Spring Framework that is available for https://repo.spring.io/snapshot. |
an error occurs with the patch: which is related probably with oracle/graal#5626 and/or oracle/graal#6526 I will start to cry |
Confirming I'm seeing the same thing described in this issue and that upgrading spring framework version to
|
That should be addressed by oracle/graalvm-reachability-metadata@4629271. |
Thank you @wilkinsona . Is there a way for me to pull that into one of my projects? |
IIRC, the documentation for the NBT Maven and Gradle plugins describes how to override the metadata version that's used. |
Thank you again. Using Spring Framework 6.0.10-SNAPSHOT with the graalvm-reachability-metadata 0.3.1 does not fix the problem (still produces the error I posted above). I'll wait for a new Spring Boot version that will hopefully resolve it. |
Waiting is unlikely to result in a fix. If Hibernate's unable to load a type reflectively, that will have to be addressed in the reachability metadata. You many want to report the problem there. |
I can do that and blindly copy/paste this error there/configuration there, but I'm not really sure/familiar with what the reachability metadata even is. All I know is that my Spring Boot 3.1 app doesn't work because of something under the covers, which from my perspective is a black box. |
Environment:
Windows 11
spring-boot: 3.1.0
kotlin: 1.8.21
native-gradle-plugin: 0.9.22
graalvm: graalvm-ce-java19-22.3.1
Bug description:
native compile ends without errors, but when starting the exe version, an error occurs:
Regression:
works fine with spring-boot 3.0.7 and exactly the same environment and code
with each new spring-boot version, the native build does not work !?!
The text was updated successfully, but these errors were encountered: