ImmutableMap dependancy issue


#1

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 com.google.common.collect.ImmutableMap.values(ImmutableMap.java:423)
at org.elasticsearch.threadpool.ThreadPool.shutdown(ThreadPool.java:363)
at org.elasticsearch.threadpool.ThreadPool.terminate(ThreadPool.java:900)
at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:165)
....
....
at java.lang.Thread.run(Thread.java:745)


(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.


#3

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