# High Level REST client error with org.elasticsearch.client library 7.3.1

**URL:** <https://discuss.elastic.co/t/high-level-rest-client-error-with-org-elasticsearch-client-library-7-3-1/200343>\
**Category:** Elasticsearch\
**Created:** [September 20, 2019, 5:48am UTC](https://discuss.elastic.co/t/high-level-rest-client-error-with-org-elasticsearch-client-library-7-3-1/200343 "2019-09-20T05:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [September 20, 2019, 5:48am UTC](https://discuss.elastic.co/t/high-level-rest-client-error-with-org-elasticsearch-client-library-7-3-1/200343/1 "2019-09-20T05:48:43Z")

</div>

Hi

I tried to use org.elasticsearch.client.RestClientBuilder (version 7.3.1) but encountered the following error. Does anyone know if this is a bug in the library file or how to resolve this?  
I am using this library in cloudera nifi

Unhandled java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionFactory

---

<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:** [October 18, 2019, 5:48am UTC](https://discuss.elastic.co/t/high-level-rest-client-error-with-org-elasticsearch-client-library-7-3-1/200343/2 "2019-10-18T05:48:44Z")

</div>

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