# Exception while indexing DOC files

**URL:** <https://discuss.elastic.co/t/exception-while-indexing-doc-files/4575>\
**Category:** Elasticsearch\
**Created:** [June 8, 2011, 3:03pm UTC](https://discuss.elastic.co/t/exception-while-indexing-doc-files/4575 "2011-06-08T15:03:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Post date:** [June 8, 2011, 3:03pm UTC](https://discuss.elastic.co/t/exception-while-indexing-doc-files/4575/1 "2011-06-08T15:03:48Z")

</div>

Hi,  
Trying to index doc files, installed attachment plugin and using JAVA  
API.  
I got this exception :

org.elasticsearch.common.util.concurrent.UncategorizedExecutionException:  
Failed execution  
at  
org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:  
49)

when doing :

IndexRequestBuilder indexRequest =  
client.prepareIndex(this.tenant,this.type,id).setSource(indexData);  
IndexResponse response = indexRequest.execute().actionGet();

Where index data is a map\<String, Object\> and Object is byte[] of  
document.

Is I doing something wrong ?

Thank You and Best Regards.

---

<div class="post-metadata">

**Author:** ![fashionalwallet](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fashionalwallet](https://discuss.elastic.co/u/fashionalwallet)\
**Post date:** [June 9, 2011, 9:08am UTC](https://discuss.elastic.co/t/exception-while-indexing-doc-files/4575/2 "2011-06-09T09:08:15Z")

</div>

- deleted -

---

<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:** [July 6, 2017, 4:04am UTC](https://discuss.elastic.co/t/exception-while-indexing-doc-files/4575/3 "2017-07-06T04:04:20Z")

</div>


