# Java client, gets disconected after a while

**URL:** <https://discuss.elastic.co/t/java-client-gets-disconected-after-a-while/17776>\
**Category:** Elasticsearch\
**Created:** [May 28, 2014, 10:21am UTC](https://discuss.elastic.co/t/java-client-gets-disconected-after-a-while/17776 "2014-05-28T10:21:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcodina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jcodina/32/118150_2.png) [@jcodina](https://discuss.elastic.co/u/jcodina)\
**Post date:** [May 28, 2014, 10:21am UTC](https://discuss.elastic.co/t/java-client-gets-disconected-after-a-while/17776/1 "2014-05-28T10:21:32Z")

</div>

I have a java client that opperates with a remote ES database. The same  
client works without any problem in different computers, but It fails in a  
computer that is behind a proxy.  
In that comptuer all the connections to external computers must go through  
that proxy, I just connect to proxy:9300 and it will redirect the  
conneciton to EsServer:9300 (having the real DNS of the EsServer..)  
In this computer the client program connects, and I can retrieve and write  
some data to ES, but after a while, with what it seems to me a random  
pattern, the connection drops. So, my questions are two:  
a: There is a way to restart the connection when in breaks (i thought the  
client was doing it)  
b: there is any parameter I should as to set up in the proxy (i don't  
manage the computer nor the proxy ☹ so ... I can't give you more  
information about it, for the moment.  
The error stack trace says:

reading register 1055603 5074  
DEBUG [elasticsearch[Kkallakku][transport\_client\_worker][T#2]{New I/O  
worker #2}] (Log4jESLogger.java:104) - [Kkallakku] disconnected from  
[[Mikula  
Golubev][O\_7-yu0fT9mI5NE6s\_1cSA][[lmy.esServer.com](http://lmy.esServer.com)][inet[proxy/---.---.---.---:9300]]],  
channel closed event  
DEBUG [elasticsearch[Kkallakku][transport\_client\_worker][T#3]{New I/O  
worker #3}] (Log4jESLogger.java:104) - [Kkallakku] disconnected from  
[[Mikula  
Golubev][O\_7-yu0fT9mI5NE6s\_1cSA][[lmy.esServer.com](http://lmy.esServer.com)][inet[proxy/1---.---.---.---:9300]]],  
channel closed event  
org.elasticsearch.client.transport.NoNodeAvailableException: No node  
available  
at  
org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:263)  
at  
org.elasticsearch.action.TransportActionNodeProxy$1.handleException(TransportActionNodeProxy.java:89)  
at  
org.elasticsearch.transport.TransportService$Adapter$2$1.run(TransportService.java:316)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b33341a0-5c07-4b09-844a-ae3138142aea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b33341a0-5c07-4b09-844a-ae3138142aea%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:26am UTC](https://discuss.elastic.co/t/java-client-gets-disconected-after-a-while/17776/2 "2017-07-06T01:26:23Z")

</div>

Closed on July 6, 2017, 1:26am UTC


