Spingboot upgrade from 2.x to 3.1.0 which is causing app failure due to elastic search dependency

org.springframework.boot:spring-boot-starter-data-elasticsearch:jar:3.1.0:compile
[INFO]    \- org.springframework.data:spring-data-elasticsearch:jar:5.1.0:compile (version managed from 5.1.0)
[INFO]       \- co.elastic.clients:elasticsearch-java:jar:8.7.1:compile 
Error creating bean with name 'storeDetailsRepo' defined in com.xyz.abc.communication.elk.repository.ElkStoreDetailsRepo defined in @EnableElasticsearchRepositories declared on ElasticsearchRepositoriesRegistrar.EnableElasticsearchRepositoriesConfiguration: Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations' Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataConfiguration$JavaClientConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchClientConfigurations$ElasticsearchClientConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchClient' parameter 0: Error creating bean with name 'restClientTransport' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchClientConfigurations$ElasticsearchTransportConfiguration.class]: Signature Parse error: expected a class type

From Elastic Search to Elasticsearch

In the trace you shared I don't see anything related to a class provided by the Elasticsearch client.

So my guess is that this is something on your end?

Error creating bean with name 'restClientTransport'

May be share your code?
Or the full stacktrace if any?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.