-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Aot hints incomplete #3103
Comments
To solve this i already collected metadata for the above mentioned application as described here: https://github.com/oracle/graalvm-reachability-metadata/blob/master/docs/CollectingMetadata.md Then filtered the metadata for After that i took the filtered metadata, removed all already by spring-session defined hints and migrated them to following serialization-config.json
There are also some hints missing for hazelcast itself see oracle/graalvm-reachability-metadata#515. The question for me now is whether I should simply transfer the above JSON into the spring-session aot hints? If yes i would be happy to create a mr for it if that's the correct way to fix the problem. |
Hi @simonhir, thanks for the report. Yes, a pull request would be great. However, I'd like to see a minimal, reproducible sample because I couldn't run yours. Ideally, the sample should have the Maven/Gradle Wrapper as well. Can you provide which version of GraalVM you are using? |
Describe the bug
We currently try to build and run our internal spring cloud gateway as native image which uses spring-session-hazelcast.
When running the native image the serialization within ReactiveMapSessionRepository fails because some aot hints are missing.
To Reproduce
mvn clean spring-boot:build-image -Pnative -Dspring.profiles.active=local
.Example exception
Expected behavior
Application runs as native image without any problems.
Sample
https://github.com/it-at-m/refarch/tree/main/refarch-gateway
Spring and spring-session version: 3.3.1
Hazlecast-spring version: 5.4.0
Custom spring session config: https://github.com/it-at-m/refarch/blob/main/refarch-gateway/src/main/java/de.muenchen.oss.refarch.gateway/configuration/WebSessionConfiguration.java
The text was updated successfully, but these errors were encountered: