-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring boot data redis startup fail #43255
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
Comments
Hello - i assume this is in a native image? You need to use reachability metadata version 0.3.14, which has updated metadata for netty: https://github.com/oracle/graalvm-reachability-metadata/releases/tag/0.3.14 There hasn't been a Native Build Tools release yet - as soon as Oracle releases one, Boot will pick it up and this issue goes away automatically. |
Here are the instructions how to do that for Maven: https://graalvm.github.io/native-build-tools/latest/maven-plugin.html#metadata-support and here for gradle: https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html#metadata-support I'll add something to the release notes. |
Yes, It is native image. Thanks. |
我也遇到了,不是Native 的 |
Translates to: It happened to me, too. It wasn't Native. If this happens on a JVM, please create a small sample so that we can reproduce it: https://github.com/spring-projects/spring-boot/wiki/How-To-Get-Help |
Hello @mhalbritter |
Unfortunately, it was a patch release of Netty that introduced the problem when using it in a native image and Spring Boot 3.3.6 upgraded to that patch release. Using 0.3.14 of the reachability metadata should address the problem with 3.3.6 as well. |
Version: 3.3.6
When application start up with aot, error happen(It's normal in 3.3.5):
The text was updated successfully, but these errors were encountered: