Fix Spring native metadata after the add of spring-data-elasticsearch dependency #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@Document
annotation:directory-server/src/main/java/org/gridsuite/directory/server/dto/elasticsearch/DirectoryElementInfos.java
Line 29 in 91468f3
The following error is thrown when starting the service in native:
Adding the missing method named in the stacktrace to metadata fix this issue. This issue is mentioned spring-projects/spring-boot#34206 (where they suggest to add RuntimeHints as in this PR) and spring-projects/spring-framework#29548
_DESERIALIZER
is not necessary in recent versions ofspring-data-elasticsearch
, this was fixed in May 2023: Extend AOT runtime hints. spring-projects/spring-data-elasticsearch#2579 (related issue AOT/GraalVM/native Caused by: java.lang.RuntimeException: No deserializer found in 'co.elastic.clients.elasticsearch.indices.IndexSettings._DESERIALIZER' spring-projects/spring-data-elasticsearch#2565)