# Unable to use restHighLevelClient

**URL:** <https://discuss.elastic.co/t/unable-to-use-resthighlevelclient/109572>\
**Category:** Elasticsearch\
**Created:** [November 29, 2017, 10:59am UTC](https://discuss.elastic.co/t/unable-to-use-resthighlevelclient/109572 "2017-11-29T10:59:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanchan](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kanchan](https://discuss.elastic.co/u/kanchan)\
**Post date:** [November 29, 2017, 10:59am UTC](https://discuss.elastic.co/t/unable-to-use-resthighlevelclient/109572/1 "2017-11-29T10:59:39Z")

</div>

Hi Team,

I tried to use scroll api, For which I need to use RestHighLevelClient but while using it, I am getting Error like:

java.lang.NoSuchMethodError: org.elasticsearch.common.xcontent.NamedXContentRegistry$Entry.(Ljava/lang/Class;Lorg/elasticsearch/common/ParseField;Lorg/elasticsearch/common/xcontent/ContextParser;)V

Please give any solution.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [December 1, 2017, 9:25am UTC](https://discuss.elastic.co/t/unable-to-use-resthighlevelclient/109572/2 "2017-12-01T09:25:56Z")

</div>

Are you using maven? Can you please share what your dependencies are?

---

<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:** [December 29, 2017, 9:26am UTC](https://discuss.elastic.co/t/unable-to-use-resthighlevelclient/109572/3 "2017-12-29T09:26:03Z")

</div>

Closed on December 29, 2017, 9:26am UTC

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