# Connect Error with JAVA - NoNodeAvailableException\[None of the configured nodes are available

**URL:** <https://discuss.elastic.co/t/connect-error-with-java-nonodeavailableexception-none-of-the-configured-nodes-are-available/102238>\
**Category:** Elasticsearch\
**Created:** [September 29, 2017, 9:59am UTC](https://discuss.elastic.co/t/connect-error-with-java-nonodeavailableexception-none-of-the-configured-nodes-are-available/102238 "2017-09-29T09:59:32Z")\
**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:** [September 29, 2017, 11:41am UTC](https://discuss.elastic.co/t/connect-error-with-java-nonodeavailableexception-none-of-the-configured-nodes-are-available/102238/2 "2017-09-29T11:41:01Z")

</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
```

````

You did not share your code so hard to say what is wrong. I guess a bad usage...

Here is some code to create a client:

> <https://github.com/dadoonet/spring-boot-cloud-elastic/blob/master/src/main/java/com/example/demo/DemoApplication.java#L57-L69>

HTH

---

_[View the full topic](https://discuss.elastic.co/t/connect-error-with-java-nonodeavailableexception-none-of-the-configured-nodes-are-available/102238)._
