-
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
ArrayIndexOutOfBoundsException during native image build #5098
Comments
Thanks for your report, we are looking into that. Any chance you can provide a small reproducer? |
@wirthi there are steps to reproduce the issue in the description. Isn't that enough or are you looking for a minimal project that reproduces the problem? |
Hi, sorry, missed that, asked for the reproducer out of a habit. Christian |
(internally tracked as GR-41450) |
The error message is not very helpful, but what is happening is that we try to snapshot the value of an In debug mode I can see that this field is represented as an I'll try to improve the error message to be more defensive against this type of errors. |
Thanks for the detailed feedback, I will implement per field caching on Spring side and let you know if that fixes the issue. |
Fixed via spring-projects/spring-framework#29250. |
@sdeleuze that's a step in the right direction but is not enough. The cache needs to be thread safe as the substitution mechanism can be invoked concurrently. You probably want to use a |
Hi, I am running into issue with my app (built on Boot 3.0.0-M5, Spring Cloud 2022.0.0-M4) during native image build phase (I used tracing agent to generate the config json files). Error details: https://github.com/wenqiglantz/spring-native-feign-reactive/actions/runs/3143616106/jobs/5108561598. Any advice on how to fix it is appreciated!
Steps to reproduce the issue
Describe GraalVM and your environment:
OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)
More details
Stack trace, see below, also attaching screenshot from github actions workflow to build native image. For full native image build debugging details including the full stack trace, warning, etc, please refer to https://github.com/wenqiglantz/spring-native-feign-reactive/actions/runs/3143616106/jobs/5108561598.
The text was updated successfully, but these errors were encountered: