When does elasticsearch throw 'NoClassDefFoundError'?


I am seeing intermittent exception -

java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.transport.ReceiveTimeoutTransportException
        at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:679)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Can some let me know when can this NoClassDefFoundErrorfor .ReceiveTimeoutTransportException can come?

ES Version - 2.3.1

This is caused when there is a class file that your code depends on and it is present at compile time but not found at runtime. Look for differences in your build time and runtime classpaths.

Yes that I know. But I am just wondering why elasticsearch is not able to find ReceiveTimeoutTransportException ?

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