2

Trying to use spring-data Ingalls-M1 release with spring-boot-starter-parent 1.4.0.RELEASE.

The application startup is failing to instantiate org.elasticsearch.client.Client with the root Exception

java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings.settingsBuilder()

ElasticSearchConfiguration class is as given below.

@Configuration
public class ElasticSearchConfiguration {

    @Bean
    public ElasticsearchTemplate elasticsearchTemplate(Client client, Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder) {
        return new ElasticsearchTemplate(client, new CustomEntityMapper(jackson2ObjectMapperBuilder.createXmlMapper(false).build()));
    }
...
}

Can I manually configure an instance of Client? How?

1
  • Did you find a fix for this ? Commented Aug 31, 2016 at 15:03

1 Answer 1

1

org.elasticsearch.common.settings.Settings.settingsBuilder() has been deprecated in favor of org.elasticsearch.common.settings.Settings.builder():

https://github.com/elastic/elasticsearch/commit/42526ac28e07da0055faafca1de6f8c5ec96cd85

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.