# Could not initialize class org.elasticsearch.index.codec.postingsformat.PostingFormats when packaging everything into single jar

**URL:** <https://discuss.elastic.co/t/could-not-initialize-class-org-elasticsearch-index-codec-postingsformat-postingformats-when-packaging-everything-into-single-jar/16639>\
**Category:** Elasticsearch\
**Created:** [March 27, 2014, 11:55am UTC](https://discuss.elastic.co/t/could-not-initialize-class-org-elasticsearch-index-codec-postingsformat-postingformats-when-packaging-everything-into-single-jar/16639 "2014-03-27T11:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stepan\_Samarin](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@Stepan\_Samarin](https://discuss.elastic.co/u/Stepan_Samarin)\
**Post date:** [March 27, 2014, 11:55am UTC](https://discuss.elastic.co/t/could-not-initialize-class-org-elasticsearch-index-codec-postingsformat-postingformats-when-packaging-everything-into-single-jar/16639/1 "2014-03-27T11:55:17Z")

</div>

Hi,

I'm experiencing a problem when trying to create river:

{"error":"IndexCreationException[[\_river] failed to create index]; nested:  
NoClassDefFoundError[Could not initialize class  
org.elasticsearch.index.codec.postingsformat.PostingFormats];  
","status":500}

This happens only when everything is packaged into single jar. Looks like a  
bug to me...

Regards, Stepan.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/663de4a5-d8fc-42f9-8495-23425407c2d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/663de4a5-d8fc-42f9-8495-23425407c2d4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![rameshk7](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rameshk7](https://discuss.elastic.co/u/rameshk7)\
**Post date:** [July 23, 2014, 7:09am UTC](https://discuss.elastic.co/t/could-not-initialize-class-org-elasticsearch-index-codec-postingsformat-postingformats-when-packaging-everything-into-single-jar/16639/2 "2014-07-23T07:09:15Z")

</div>

Hi ia m ramesh...  
I'm getting the following error message while creating river for couchdb..

{"error":"IndexCreationException[[\_river] failed to create index]; nested:  
NoClassDefFoundError[Could not initialize class  
org.elasticsearch.index.codec.postingsformat.PostingFormats];  
","status":500}

Can you please suggest me how to solve this.

Regards, Ramesh.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/df069513-198a-4cfe-8d77-f83c10773ed4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/df069513-198a-4cfe-8d77-f83c10773ed4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:14am UTC](https://discuss.elastic.co/t/could-not-initialize-class-org-elasticsearch-index-codec-postingsformat-postingformats-when-packaging-everything-into-single-jar/16639/3 "2017-07-06T01:14:04Z")

</div>


