ImmutableMap dependancy issue


I get this exception when running a jar on some machines (not on all machines).
Is this related to elasticsearch or just a issue of creating the jar using maven ?

Exception in thread "Thread-18" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMapValues$1
at org.elasticsearch.threadpool.ThreadPool.shutdown(
at org.elasticsearch.threadpool.ThreadPool.terminate(
at org.elasticsearch.client.transport.TransportClient$

(Nik Everett) #2

It is really hard to tell without more information. Like, how did you get the jar? You built it with maven. Is it 2.x? What is your lib path, etc. For the most part Elasticsearch is only really going to work well if you run it using one of the distributions.


thanks you for your answer. I was mislead with the exception (and heard of ES shading etc..). It was a maven issue. that package was not properly created

(system) #4