The following method did not exist: org.elasticsearch.common.settings.Settings$Builder.put([Ljava/lang/Object;)Lorg/elasticsearch/common/settings/Settings$Builder

We are getting below error, both error and mvn tree as below.

jo.a.c.loader.WebappClassLoaderBase : The web application [#v1] appears to have started a thread named [springCache] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:


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.elasticsearch.xpack.notification.email.Account.<clinit>(Account.java:71)

The following method did not exist:

org.elasticsearch.common.settings.Settings$Builder.put([Ljava/lang/Object;)Lorg/elasticsearch/common/settings/Settings$Builder;

The method's class, org.elasticsearch.common.settings.Settings$Builder, is available from the following locations:

jar:file:/C:/jpt/m2/repo/org/elasticsearch/elasticsearch/6.4.3/elasticsearch-6.4.3.jar!/org/elasticsearch/common/settings/Settings$Builder.class

It was loaded from the following location:

file:/C:/jpt/m2/repo/org/elasticsearch/elasticsearch/6.4.3/elasticsearch-6.4.3.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.elasticsearch.common.settings.Settings$Builder

Maven tree is as below :

[INFO] +- org.springframework.boot:spring-boot-starter-data-elasticsearch:jar:2.1.4.RELEASE:compile
[INFO] | - org.springframework.data:spring-data-elasticsearch:jar:3.1.6.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.1.6.RELEASE:compile
[INFO] | +- joda-time:joda-time:jar:2.10.1:compile
[INFO] | - org.elasticsearch.plugin:transport-netty4-client:jar:6.4.3:compile
[INFO] | +- io.netty:netty-buffer:jar:4.1.34.Final:compile
[INFO] | +- io.netty:netty-codec:jar:4.1.34.Final:compile
[INFO] | +- io.netty:netty-codec-http:jar:4.1.34.Final:compile
[INFO] | +- io.netty:netty-common:jar:4.1.34.Final:compile
[INFO] | +- io.netty:netty-handler:jar:4.1.34.Final:compile
[INFO] | +- io.netty:netty-resolver:jar:4.1.34.Final:compile
[INFO] | - io.netty:netty-transport:jar:4.1.34.Final:compile
[INFO] +- org.elasticsearch.client:x-pack-transport:jar:5.6.1:provided
[INFO] | +- org.elasticsearch.plugin:x-pack-api:jar:5.6.1:provided
[INFO] | | +- org.elasticsearch.plugin:transport-netty3-client:jar:5.6.1:provided
[INFO] | | +- com.unboundid:unboundid-ldapsdk:jar:4.0.10:provided
[INFO] | | +- com.sun.mail:javax.mail:jar:1.6.2:provided
[INFO] | | +- org.elasticsearch.client:elasticsearch-rest-client:jar:6.4.3:provided
[INFO] | | | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:provided
[INFO] | | | - org.apache.httpcomponents:httpcore-nio:jar:4.4.11:provided
[INFO] | | +- org.elasticsearch.client:elasticsearch-rest-client-sniffer:jar:5.6.1:provided
[INFO] | | - net.sf.supercsv:super-csv:jar:2.4.0:provided
[INFO] | - org.elasticsearch.client:transport:jar:6.4.3:provided
[INFO] | +- org.elasticsearch:elasticsearch:jar:6.4.3:provided
[INFO] | | +- org.elasticsearch:elasticsearch-core:jar:6.4.3:provided
[INFO] | | +- org.elasticsearch:elasticsearch-secure-sm:jar:6.4.3:provided
[INFO] | | +- org.elasticsearch:elasticsearch-x-content:jar:6.4.3:provided
[INFO] | | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.9.8:provided
[INFO] | | | - com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.9.8:provided
[INFO] | | +- org.apache.lucene:lucene-core:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-grouping:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-highlighter:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-join:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-memory:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-misc:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-queries:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-sandbox:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-spatial:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-spatial-extras:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:7.4.0:provided
[INFO] | | +- org.apache.lucene:lucene-suggest:jar:7.4.0:provided
[INFO] | | +- org.elasticsearch:elasticsearch-cli:jar:6.4.3:provided
[INFO] | | | - net.sf.jopt-simple:jopt-simple:jar:5.0.2:provided
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.1:provided
[INFO] | | +- com.tdunning:t-digest:jar:3.2:provided
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.9:compile
[INFO] | | +- org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | - org.elasticsearch:jna:jar:4.5.1:provided
[INFO] | +- org.elasticsearch.plugin:reindex-client:jar:6.4.3:provided
[INFO] | +- org.elasticsearch.plugin:lang-mustache-client:jar:6.4.3:provided
[INFO] | | - com.github.spullara.mustache.java:compiler:jar:0.9.3:provided
[INFO] | +- org.elasticsearch.plugin:percolator-client:jar:6.4.3:provided
[INFO] | +- org.elasticsearch.plugin:parent-join-client:jar:6.4.3:provided
[INFO] | - org.elasticsearch.plugin:rank-eval-client:jar:6.4.3:provided
[INFO] | +- org.apache.commons:commons-collections4:jar:4.2:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.8:compile
[INFO] | | - org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-security:jar:2.1.4.RELEASE:compile
[INFO] | | +- org.springframework.security:spring-security-config:jar:5.1.5.RELEASE:compile
[INFO] | | | - org.springframework.security:spring-security-core:jar:5.1.5.RELEASE:compile
[INFO] | | - org.springframework.security:spring-security-web:jar:5.1.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-actuator:jar:2.1.4.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.1.4.RELEASE:compile
[INFO] | | | - org.springframework.boot:spring-boot-actuator:jar:2.1.4.RELEASE:compile
[INFO] | | - io.micrometer:micrometer-core:jar:1.1.4:compile
[INFO] | | - org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] - org.springframework.data:spring-data-commons:jar:2.1.6.RELEASE:compile

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