# Response indexing using JAVA API

**URL:** <https://discuss.elastic.co/t/response-indexing-using-java-api/32628>\
**Category:** Elasticsearch\
**Created:** [October 21, 2015, 2:34am UTC](https://discuss.elastic.co/t/response-indexing-using-java-api/32628 "2015-10-21T02:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikuchan](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kikuchan](https://discuss.elastic.co/u/kikuchan)\
**Post date:** [October 21, 2015, 2:34am UTC](https://discuss.elastic.co/t/response-indexing-using-java-api/32628/1 "2015-10-21T02:34:44Z")

</div>

Hi, Guys.  
We are using response JAVA API  
We posted 50,000 line on Elasticsearch via Java API.  
We are seeing Transport error some times.

We get following error some times.

org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []  
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:305)  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:200)  
at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
at org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:102)  
at org.elasticsearch.client.transport.TransportClient.index(TransportClient.java:340)  
at org.elasticsearch.action.index.IndexRequestBuilder.doExecute(IndexRequestBuilder.java:266)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)  
at sample1.ESsample.response\_Index(ESsample.java:191)  
at sample1.Es\_test.main(Es\_test.java:732)

Why I got this error?  
I assumed that this error occurred after excessive posting of indexing data.  
This error rarely occurred after memory extension.

but then, I finished pushing all data on Elasticsearch via JAVA API.  
following error ocured.

java.sql.SQLRecoverableException: KFPA11723-E Communication error occurred, reason=NETWORK[PrdbConnection.commit][HiRDB\_CONNECTION\_ID(fes:4316:12188)]  
at JP.co.Hitachi.soft.HiRDB.JDBC.CltConnect.commit(CltConnect.java:1147)  
at JP.co.Hitachi.soft.HiRDB.JDBC.PrdbConnection.commit(PrdbConnection.java:2782)  
at JP.co.Hitachi.soft.HiRDB.JDBC.PrdbConnection.autocommit(PrdbConnection.java:4923)  
at JP.co.Hitachi.soft.HiRDB.JDBC.PrdbResultSet.close(PrdbResultSet.java:393)  
at JP.co.Hitachi.soft.HiRDB.JDBC.PrdbStatement.closeResultSet(PrdbStatement.java:3137)  
at JP.co.Hitachi.soft.HiRDB.JDBC.PrdbStatement.close(PrdbStatement.java:689)  
at sample1.hirdb\_connect.close(hirdb\_connect.java:56)  
at sample1.Es\_test.main(Es\_test.java:738)

Why I got this error?  
I assumed that this error occurred early close connection while posting date on Elasticsearch.  
How can I posted all date on Elasticsearch without above error.

sincerely.

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 21, 2015, 7:02am UTC](https://discuss.elastic.co/t/response-indexing-using-java-api/32628/2 "2015-10-21T07:02:12Z")

</div>

Yes, your cluster disconnected, mostly because it can not respond within 5 seconds. A larger cluster can handle your data better or you should reconsider if sending 50.000 lines at one is a good ides. If you send smaller amount and give the cluster time, it will work much better.

> [@kikuchan](#):
>
> SQLRecoverableException

This is not the right forum to discuss SQL messages.

The message is a `SQLRecoverableException` so you can repeat the close action until it succeeds.

---

<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 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/response-indexing-using-java-api/32628/3 "2017-07-05T23:43:40Z")

</div>


