Skip to content

ElasticsearchClientConfigurations does not support elasticsearch-java 8.9.x+ #37891

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

Closed
mvh77 opened this issue Oct 16, 2023 · 1 comment
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@mvh77
Copy link

mvh77 commented Oct 16, 2023

org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations.java in spring-boot-autoconfigure:3.1.4 does not support elasticsearch-java 8.9.x+. Works until 8.8.2. Elasticsearch has changed the API for co.elastic.clients.transport.rest_client.RestClientTransport.java where it's no longer backwards compatible.

Caused by: java.lang.NoSuchMethodError: 'void co.elastic.clients.transport.rest_client.RestClientTransport.<init>(org.elasticsearch.client.RestClient, co.elastic.clients.json.JsonpMapper, co.elastic.clients.transport.TransportOptions)'
    at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration.restClientTransport(ElasticsearchClientConfigurations.java:94)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139)
    ... 75 more
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 16, 2023
@wilkinsona
Copy link
Member

Duplicates #36669.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants