# Bulk indexing: java.lang.NoClassDefFoundError: org.elasticsearch.ElasticsearchException when ActionRequestBuilder.get

**URL:** https://discuss.elastic.co/t/bulk-indexing-java-lang-noclassdeffounderror-org-elasticsearch-elasticsearchexception-when-actionrequestbuilder-get/77699
**Category:** Elasticsearch
**Created:** [March 7, 2017, 4:50pm UTC](https://discuss.elastic.co/t/bulk-indexing-java-lang-noclassdeffounderror-org-elasticsearch-elasticsearchexception-when-actionrequestbuilder-get/77699 "2017-03-07T16:50:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christophe\_spielmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophe_spielmann/32/49567_2.png) [@christophe\_spielmann](https://discuss.elastic.co/u/christophe_spielmann)
#### Post date: [March 7, 2017, 4:50pm UTC](https://discuss.elastic.co/t/bulk-indexing-java-lang-noclassdeffounderror-org-elasticsearch-elasticsearchexception-when-actionrequestbuilder-get/77699/1 "2017-03-07T16:50:52Z")

</div>

elasticsearch 2.0

While performing a bulk indexation I got the following error during only one of my indexations:  
Exception in thread "main" java.lang.NoClassDefFoundError: org.elasticsearch.ElasticsearchException  
at org.elasticsearch.action.support.AdapterActionFuture.rethrowExecutionException(AdapterActionFuture.java:93)  
at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:48)  
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:67)  
at lu.ibbl.elasticsearch.Indexer.indexJsonBulkAsBulkRequest(Indexer.java:172)  
at lu.ibbl.elasticsearch.DataIndexerRunner.indexJsonBulk(DataIndexerRunner.java:228)  
at lu.ibbl.elasticsearch.DataIndexerRunner.extractAllFromCacheAndIndexAsChunk(DataIndexerRunner.java:154)  
at lu.ibbl.elasticsearch.DataIndexerRunner.main(DataIndexerRunner.java:357)

it seems to be random error as this piece of code has been running for ages.

BulkRequestBuilder bulkRequest = esClient.prepareBulk();  
.....  
BulkResponse bulkResponse = bulkRequest.get();

I don't find any log that would be useful.

Any clue ?

I will see tonight when the full indexation runs again if I have the same issue.

---

<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: [April 4, 2017, 4:50pm UTC](https://discuss.elastic.co/t/bulk-indexing-java-lang-noclassdeffounderror-org-elasticsearch-elasticsearchexception-when-actionrequestbuilder-get/77699/2 "2017-04-04T16:50:59Z")

</div>

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