Caused by: java.lang.NoSuchMethodError: org.elasticsearch.transport.client.PreBuiltTransportClient.addPlugins(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Collection

When my app starts i get this exception

Caused by: java.lang.NoSuchMethodError: 
org.elasticsearch.transport.client.PreBuiltTransportClient.addPlugins(Ljava/util/Collection;Ljava/util/Collection;)
Ljava/util/Collection;

My dependencies are

compile 'org.elasticsearch.client:rest:5.4.3'
compile 'org.elasticsearch:elasticsearch:5.4.3'
compile 'org.elasticsearch.client:transport:5.4.3'

i have changed the version to many different values but still...

NoSuchMethodError usually means that you have a different JAR on the classpath at runtime than you had at compile time. Maybe you just need to recompile your app?

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