-
Notifications
You must be signed in to change notification settings - Fork 1.3k
NoClassDefFoundError in ElasticsearchRepository.findAllById #2238
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
Labels
Comments
JKatzwinkel
added a commit
to JKatzwinkel/tla-es
that referenced
this issue
Jul 24, 2022
JKatzwinkel
added a commit
to JKatzwinkel/spring-data-elasticsearch-8-test
that referenced
this issue
Jul 24, 2022
for demonstration of issue described in spring-projects/spring-data-elasticsearch#2238
Thanks for finding and reporting this. There the repository implementation is referencing one of the classes that are used for the old Elasticsearch |
sothawo
added a commit
to sothawo/spring-data-elasticsearch
that referenced
this issue
Jul 24, 2022
JKatzwinkel
added a commit
to JKatzwinkel/tla-es
that referenced
this issue
Jul 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spring-data-elasticsearch
:5.0.0-M5
elasticsearch-java
:8.3.1
When calling
findAllById
of a minimal example application using release5.0.0-M5
ofspring-data-elasticsearch
, the following error occurs:The repository in question literally does nothing fancy at all and rather looks like this:
The calling Spring
Controller
component method in the stacktrace above is quite simple as well, but any attempt at callingfindAllByIds
will fail:The
ApplicationRunner
app class is annotated with@EnableAutoConfiguration
(doesn't matter ifElasticsearchDataAutoConfiguration.class
is being excluded or not).Fortunately, as a simple workaround one can just use a tactical
@Query
annotation for now:The text was updated successfully, but these errors were encountered: