# Java API error

**URL:** <https://discuss.elastic.co/t/java-api-error/14357>\
**Category:** Elasticsearch\
**Created:** [November 11, 2013, 10:31pm UTC](https://discuss.elastic.co/t/java-api-error/14357 "2013-11-11T22:31:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [November 11, 2013, 10:31pm UTC](https://discuss.elastic.co/t/java-api-error/14357/1 "2013-11-11T22:31:16Z")

</div>

I am getting the following exception however I don't see anything in  
elasticsearch logs:

## Problem executing insert: org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution at org.elasticsearch.action.support.AdapterActionFuture.rethrowExecutionException(AdapterActionFuture.java:88) at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:49) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.index(ESIndexCommand.java:123) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.doWork(ESIndexCommand.java:80) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.call(ESIndexCommand.java:43) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.call(ESIndexCommand.java:16) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.elasticsearch.common.io.stream.HandlesStreamOutput.writeString(HandlesStreamOutput.java:54) at org.elasticsearch.action.support.replication.ShardReplicationOperationRequest.writeTo(ShardReplicationOperationRequest.java:174) at org.elasticsearch.action.index.IndexRequest.writeTo(IndexRequest.java:643) at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:543) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:189) at org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:63) at org.elasticsearch.client.transport.support.InternalTransportClient$2.doWithNode(InternalTransportClient.java:109) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:214) at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106) at org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:84) at org.elasticsearch.client.transport.TransportClient.index(TransportClient.java:315) at org.elasticsearch.action.index.IndexRequestBuilder.doExecute(IndexRequestBuilder.java:323) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)

[2013-11-11 17:28:05,543][TRACE][transport.netty] [Cyclops]  
channel closed: [id: 0x0a7bf81a, /10.80.140.5:49733 =\> /10.80.140.105:9300]  
[2013-11-11 17:28:05,544][TRACE][transport.netty] [Cyclops]  
channel closed: [id: 0x57354d02, /10.80.140.5:49734 =\> /10.80.140.105:9300]  
[2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
Submitting new rescheduling cluster info update job  
[2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
Performing ClusterInfoUpdateJob  
[2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
Scheduling next run for updating cluster info in: 30s  
[2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
Skipping ClusterInfoUpdatedJob since it is disabled  
[2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
Submitting new rescheduling cluster info update job  
[2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
Performing ClusterInfoUpdateJob  
[2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
Scheduling next run for updating cluster info in: 30s  
[2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
Skipping ClusterInfoUpdatedJob since it is disabled  
[2013-11-11 17:29:10,607][TRACE][cluster] [Cyclops]  
Submitting new rescheduling cluster info update job  
[2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
Performing ClusterInfoUpdateJob  
[2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
Scheduling next run for updating cluster info in: 30s  
[2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
Skipping ClusterInfoUpdatedJob since it is disabled

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [November 11, 2013, 10:35pm UTC](https://discuss.elastic.co/t/java-api-error/14357/2 "2013-11-11T22:35:33Z")

</div>

Never mind found the issue. I had a null indexname

On Mon, Nov 11, 2013 at 2:31 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:

> I am getting the following exception however I don't see anything in  
> elasticsearch logs:
> 
> ## Problem executing insert: org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution at org.elasticsearch.action.support.AdapterActionFuture.rethrowExecutionException(AdapterActionFuture.java:88) at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:49) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.index(ESIndexCommand.java:123) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.doWork(ESIndexCommand.java:80) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.call(ESIndexCommand.java:43) at com.intuit.dp.services.nosqlclient.command.ESIndexCommand.call(ESIndexCommand.java:16) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.elasticsearch.common.io.stream.HandlesStreamOutput.writeString(HandlesStreamOutput.java:54) at org.elasticsearch.action.support.replication.ShardReplicationOperationRequest.writeTo(ShardReplicationOperationRequest.java:174) at org.elasticsearch.action.index.IndexRequest.writeTo(IndexRequest.java:643) at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:543) at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:189) at org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:63) at org.elasticsearch.client.transport.support.InternalTransportClient$2.doWithNode(InternalTransportClient.java:109) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:214) at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106) at org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:84) at org.elasticsearch.client.transport.TransportClient.index(TransportClient.java:315) at org.elasticsearch.action.index.IndexRequestBuilder.doExecute(IndexRequestBuilder.java:323) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
> 
> [2013-11-11 17:28:05,543][TRACE][transport.netty] [Cyclops]  
> channel closed: [id: 0x0a7bf81a, /10.80.140.5:49733 =\> /10.80.140.105:9300  
> ]  
> [2013-11-11 17:28:05,544][TRACE][transport.netty] [Cyclops]  
> channel closed: [id: 0x57354d02, /10.80.140.5:49734 =\> /10.80.140.105:9300  
> ]  
> [2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
> Submitting new rescheduling cluster info update job  
> [2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
> Performing ClusterInfoUpdateJob  
> [2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
> Scheduling next run for updating cluster info in: 30s  
> [2013-11-11 17:28:10,606][TRACE][cluster] [Cyclops]  
> Skipping ClusterInfoUpdatedJob since it is disabled  
> [2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
> Submitting new rescheduling cluster info update job  
> [2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
> Performing ClusterInfoUpdateJob  
> [2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
> Scheduling next run for updating cluster info in: 30s  
> [2013-11-11 17:28:40,607][TRACE][cluster] [Cyclops]  
> Skipping ClusterInfoUpdatedJob since it is disabled  
> [2013-11-11 17:29:10,607][TRACE][cluster] [Cyclops]  
> Submitting new rescheduling cluster info update job  
> [2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
> Performing ClusterInfoUpdateJob  
> [2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
> Scheduling next run for updating cluster info in: 30s  
> [2013-11-11 17:29:10,608][TRACE][cluster] [Cyclops]  
> Skipping ClusterInfoUpdatedJob since it is disabled

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:07am UTC](https://discuss.elastic.co/t/java-api-error/14357/3 "2017-07-06T02:07:47Z")

</div>


