Skip to content
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

Fix GraalVM native image error using EnableSpringDataWebSupport #3171

Closed
christophstrobl opened this issue Oct 7, 2024 · 0 comments
Closed
Assignees
Labels
theme: aot An issue related to Ahead-Of-Time processing type: task A general task

Comments

@christophstrobl
Copy link
Member

A change in e074fcc seems to now cause problems with the native image support (related to oracle/graal#6510) resulting in

om.oracle.svm.core.util.VMError$HostedError: New Method or Constructor found as reachable after static analysis: public org.springframework.data.web.config.EnableSpringDataWebSupport$PageSerializationMode org.springframework.data.web.config.SpringDataWebSettings.pageSerializationMode()
@christophstrobl christophstrobl added type: task A general task theme: aot An issue related to Ahead-Of-Time processing labels Oct 7, 2024
@christophstrobl christophstrobl self-assigned this Oct 7, 2024
@christophstrobl christophstrobl added this to the 3.4 RC1 (2024.1.0) milestone Oct 7, 2024
christophstrobl added a commit that referenced this issue Oct 7, 2024
This commit adds a required native image reflection hint to allow Jackson object mapping to resolve and invoke the constructor of PageMetadata.
It also fixes an issue that surfaced after changing the bean constructor argument for SpringDataWebSettings leading to failures during the native compilation.

Closes: #3171
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-Of-Time processing type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant