-
Notifications
You must be signed in to change notification settings - Fork 672
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
@EnableSpringDataWebSupport not working in native image #3117
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Jul 1, 2024
workaround for someone else also meet this problem: class SpringDataJacksonHints: RuntimeHintsRegistrar {
override fun registerHints(hints: RuntimeHints, classLoader: ClassLoader?) {
hints.reflection().registerType(TypeReference.of(
"org.springframework.data.web.config.SpringDataJacksonConfiguration\$PageModule\$PageModelConverter"
), MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
hints.reflection().registerType(TypeReference.of(
"org.springframework.data.web.config.SpringDataJacksonConfiguration\$PageModule\$PlainPageSerializationWarning"
), MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
}
} |
christophstrobl
added
type: bug
A general bug
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Jul 2, 2024
Thank you @czp3009 for raising the issue and the reproducer. |
christophstrobl
added a commit
to christophstrobl/spring-aot-smoke-tests
that referenced
this issue
Jul 3, 2024
Add tests to verify Jackson serialization of Page instances work using the PageModule. See: spring-projects/spring-data-commons#3117
This was referenced Jul 3, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
@EnableSpringDataWebSupport
in graalvm native image, requests will always return 500Consider following code:
response:
log:
issue reproduction repository: https://github.com/czp3009/spring-EnableSpringDataWebSupport-not-working-in-native-image
please follow the steps in the repository README to reproduce
=========================================================
More discoveries:
there is the same result whether pageSerializationMode is specified or not. log of another case:
The text was updated successfully, but these errors were encountered: