# Error connecting ElasticSearch 5.4.3 or 5.4.1 maven project java

**URL:** <https://discuss.elastic.co/t/error-connecting-elasticsearch-5-4-3-or-5-4-1-maven-project-java/114345>\
**Category:** Elasticsearch\
**Created:** [January 5, 2018, 10:21pm UTC](https://discuss.elastic.co/t/error-connecting-elasticsearch-5-4-3-or-5-4-1-maven-project-java/114345 "2018-01-05T22:21:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 6, 2018, 10:01am UTC](https://discuss.elastic.co/t/error-connecting-elasticsearch-5-4-3-or-5-4-1-maven-project-java/114345/2 "2018-01-06T10:01:35Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

1st of all I'd use the Rest client instead of the Transport client.  
Then, could you try you sample code outside the context of websphere?

May be share also your sample code?

---

_[View the full topic](https://discuss.elastic.co/t/error-connecting-elasticsearch-5-4-3-or-5-4-1-maven-project-java/114345)._
