This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Regression on Spring Data Elasticsearch #1492
Labels
status: feedback-provided
Feedback has been provided
type: regression
A bug that is also a regression
Milestone
Intro
While Spring Data Elasticsearch worked fine with Spring Boot 2.5.x + Spring Native 0.10x
It stopped working in Spring Boot 2.6.x + 0.11x.
During Bootstrap we now get Reflection errors like "no suitable constructor found ..."
Description
I suspect a similiar regression like in #1370,
where the Behavior of TypeHint changed.
And there is als a very similar issue to Spring Data Mongodb
#1487
I already started adding Typehints one by one .. but this isn't ending:
@typehint(types = org.apache.logging.log4j.message.ParameterizedMessageFactory.class, access = {TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS})
@typehint(types = org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository.class, access = {TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS})
Example
I created a simpler branch of the existing repo, that needs to build with the Maven Profile "docker-image-native"
This is missing the Typehints above to get the original errors.
https://github.com/goafabric/example-search-service/tree/native-image-regression
Build works .. bootstrap fails.
I suspect that the existing Typehints for SPring Data Elastic + Mongodb need to be reworked similar like #1370
The text was updated successfully, but these errors were encountered: