You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a breaking change in the API of the Elasticsearch Java Client in 8.9.0 which seems to be introduced in #584.
Boot's inner class ElasticsearchTransportConfiguration inside ElasticsearchClientConfigurations tries to creates an RestClientTransport by passing TransportOptions. But due to the change it now expects a RestClientOptions.
Is it possible to make a hotfix to make it compatible with SpringBoot again?
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration.restClientTransport(ElasticsearchClientConfigurations.java:91)
The following method did not exist:
'void co.elastic.clients.transport.rest_client.RestClientTransport.<init>(org.elasticsearch.client.RestClient, co.elastic.clients.json.JsonpMapper, co.elastic.clients.transport.TransportOptions)'
The calling method's class, org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration, was loaded from the following location:
jar:file:/C:/Users/User/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.2/spring-boot-autoconfigure-3.1.2.jar!/org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration.class
The called method's class, co.elastic.clients.transport.rest_client.RestClientTransport, is available from the following locations:
jar:file:/C:/Users/User/.m2/repository/co/elastic/clients/elasticsearch-java/8.9.0/elasticsearch-java-8.9.0.jar!/co/elastic/clients/transport/rest_client/RestClientTransport.class
The called method's class hierarchy was loaded from the following locations:
co.elastic.clients.transport.rest_client.RestClientTransport: file:/C:/Users/User/.m2/repository/co/elastic/clients/elasticsearch-java/8.9.0/elasticsearch-java-8.9.0.jar
co.elastic.clients.transport.ElasticsearchTransportBase: file:/C:/Users/User/.m2/repository/co/elastic/clients/elasticsearch-java/8.9.0/elasticsearch-java-8.9.0.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration and co.elastic.clients.transport.rest_client.RestClientTransport
The text was updated successfully, but these errors were encountered:
fabian-froehlich
changed the title
SpringBoot 3.1 incompatibility with Elasticsearch Client 8.9.0
Elasticsearch Client 8.9.0 breaks with SpringBoot 3.1
Jul 27, 2023
Java API client version
8.9.0
Java version
17
Elasticsearch Version
8.9.0
Problem description
There seems to be a breaking change in the API of the Elasticsearch Java Client in 8.9.0 which seems to be introduced in #584.
Boot's inner class
ElasticsearchTransportConfiguration
insideElasticsearchClientConfigurations
tries to creates anRestClientTransport
by passingTransportOptions
. But due to the change it now expects aRestClientOptions
.Is it possible to make a hotfix to make it compatible with SpringBoot again?
The text was updated successfully, but these errors were encountered: