# When does elasticsearch throw 'NoClassDefFoundError'?

**URL:** <https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995>\
**Category:** Elasticsearch\
**Created:** [October 6, 2017, 11:19am UTC](https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995 "2017-10-06T11:19:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [October 6, 2017, 11:19am UTC](https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995/1 "2017-10-06T11:19:38Z")

</div>

Hi

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 `NoClassDefFoundError`for `.ReceiveTimeoutTransportException` can come?

ES Version - 2.3.1

---

<div class="post-metadata">

**Author:** ![vishnugt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnugt/32/22026_2.png) [@vishnugt](https://discuss.elastic.co/u/vishnugt)\
**Post date:** [October 6, 2017, 2:32pm UTC](https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995/2 "2017-10-06T14:32:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [October 6, 2017, 3:57pm UTC](https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995/3 "2017-10-06T15:57:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 3, 2017, 3:57pm UTC](https://discuss.elastic.co/t/when-does-elasticsearch-throw-noclassdeffounderror/102995/4 "2017-11-03T15:57:27Z")

</div>

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