# Need compatible version of x-pack-transport of org.elasticsearch.client with ElasticSearch 6.8.2

**URL:** <https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316>\
**Category:** Elasticsearch\
**Created:** [November 25, 2019, 1:54pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316 "2019-11-25T13:54:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avinaba\_Ghosh\_Hajra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avinaba_ghosh_hajra/32/57697_2.png) [@Avinaba\_Ghosh\_Hajra](https://discuss.elastic.co/u/Avinaba_Ghosh_Hajra)\
**Post date:** [November 25, 2019, 1:54pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/1 "2019-11-25T13:54:47Z")

</div>

We are using elasticsearch 6.8.2.  
Existing code is using TrasportClient for connection with ElasticSEarch from Java code.  
Now there is ELastiSearch userid and password.  
So we are trying to use x-pack-transport dependency of org.elasticsearch.client.  
But not able to find compatible x-pack-transport version in maven repo.  
Our application is using maven.

I am getting the following Exception for

` nested exception is java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings$Builder.put([Ljava/lang/Object;)Lorg/elasticsearch/common/settings/Settings$Builder`

In our POM

```
       <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>transport</artifactId>
            <version>6.8.2</version>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>x-pack-transport</artifactId>
            <version>5.6.1</version>
        </dependency>
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 25, 2019, 2:24pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/2 "2019-11-25T14:24:29Z")

</div>

Did you follow all the instructions on that page? [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/setup-xpack-client.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/setup-xpack-client.html)

---

<div class="post-metadata">

**Author:** ![Avinaba\_Ghosh\_Hajra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avinaba_ghosh_hajra/32/57697_2.png) [@Avinaba\_Ghosh\_Hajra](https://discuss.elastic.co/u/Avinaba_Ghosh_Hajra)\
**Post date:** [November 25, 2019, 2:29pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/3 "2019-11-25T14:29:56Z")

</div>

Yes. I have followed. If I mentioned 6.8.2 in the place of {version}. Then it can not able to fetch the jar. In maven repo, it is not there.  
Till 5.6.1 it can able to fetch.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 25, 2019, 5:44pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/4 "2019-11-25T17:44:52Z")

</div>

Did you add:

```auto
      <repository>
         <id>elasticsearch-releases</id>
         <url>https://artifacts.elastic.co/maven</url>
         <releases>
          <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>

```

---

<div class="post-metadata">

**Author:** ![Avinaba\_Ghosh\_Hajra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avinaba_ghosh_hajra/32/57697_2.png) [@Avinaba\_Ghosh\_Hajra](https://discuss.elastic.co/u/Avinaba_Ghosh_Hajra)\
**Post date:** [November 25, 2019, 6:07pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/5 "2019-11-25T18:07:31Z")

</div>

Yes. I have added.

Regards  
Avinaba

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 25, 2019, 6:38pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/6 "2019-11-25T18:38:45Z")

</div>

Could you share the full output of:

```auto
mvn clean dependency:tree

```

---

<div class="post-metadata">

**Author:** ![Avinaba\_Ghosh\_Hajra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avinaba_ghosh_hajra/32/57697_2.png) [@Avinaba\_Ghosh\_Hajra](https://discuss.elastic.co/u/Avinaba_Ghosh_Hajra)\
**Post date:** [November 25, 2019, 8:02pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/7 "2019-11-25T20:02:01Z")

</div>

got the issue. it is downloading the dependencies from my company maven repo. So it is not able to download it.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 25, 2019, 9:21pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/8 "2019-11-25T21:21:04Z")

</div>

The guide also mentions that case.

---

<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 23, 2019, 9:21pm UTC](https://discuss.elastic.co/t/need-compatible-version-of-x-pack-transport-of-org-elasticsearch-client-with-elasticsearch-6-8-2/209316/9 "2019-12-23T21:21:08Z")

</div>

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