# RemoteTransportException without root cause

**URL:** <https://discuss.elastic.co/t/remotetransportexception-without-root-cause/14062>\
**Category:** Elasticsearch\
**Created:** [October 22, 2013, 8:40pm UTC](https://discuss.elastic.co/t/remotetransportexception-without-root-cause/14062 "2013-10-22T20:40:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Uang](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Justin\_Uang](https://discuss.elastic.co/u/Justin_Uang)\
**Post date:** [October 22, 2013, 8:40pm UTC](https://discuss.elastic.co/t/remotetransportexception-without-root-cause/14062/1 "2013-10-22T20:40:22Z")

</div>

I got this error

```
    java.util.concurrent.ExecutionException: 

```

org.elasticsearch.transport.RemoteTransportException:  
[Sigyn][inet[/10.160.14.67:8600]][search]

and the stack trace was just of how I called execute() on the request

```
    // execute the request
    SearchResponse response;
    try {
        response = request.execute().get();
    } catch (ExecutionException e) {
        throw new RuntimeException(e);
    } catch (InterruptedException e) {
        throw new UncheckedInterruptedException(e);
    }

```

In order to find the root cause of this exception, I had to  
set logger.action=TRACE to be able to find that it was actually a full  
thread pool queue.

2013-10-22 16:12:57,623 -0400 TRACE [elasticsearch[Rawhide  
Kid][transport\_server\_worker][T#4]{New I/O worker #21}] search.type -  
[Rawhide Kid] Error during transport action execution.  
org.elasticsearch.common.util.concurrent.EsRejectedExecutionException:  
rejected execution of  
[org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2]  
at  
org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:35)  
at  
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)  
at  
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)

Why was it that the EsRejectedExecutionException didn't show up in the  
stack trace of the RemoteTransportException that showed up in my client  
code?

Best,

Justin

--  
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:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 25, 2013, 7:16am UTC](https://discuss.elastic.co/t/remotetransportexception-without-root-cause/14062/2 "2013-10-25T07:16:29Z")

</div>

Hey,

the EsRejectedExecutionException was wrapped in a RemoteTransportException  
because it needed to be send over the wire. Not sure on the top of my head,  
but maybe the ExceptionsHelper class has a helper methods for unwrapping.

--Alex

On Tue, Oct 22, 2013 at 10:40 PM, Justin Uang [justin.uang@gmail.com](mailto:justin.uang@gmail.com) wrote:

> I got this error
> 
> ```
> java.util.concurrent.ExecutionException:
> 
> ```
> 
> org.elasticsearch.transport.RemoteTransportException:  
> [Sigyn][inet[/10.160.14.67:8600]][search]
> 
> and the stack trace was just of how I called execute() on the request
> 
> ```
> // execute the request
> SearchResponse response;
> try {
> response = request.execute().get();
> } catch (ExecutionException e) {
> throw new RuntimeException(e);
> } catch (InterruptedException e) {
> throw new UncheckedInterruptedException(e);
> }
> 
> ```
> 
> In order to find the root cause of this exception, I had to  
> set logger.action=TRACE to be able to find that it was actually a full  
> thread pool queue.
> 
> 2013-10-22 16:12:57,623 -0400 TRACE [elasticsearch[Rawhide  
> Kid][transport\_server\_worker][T#4]{New I/O worker #21}] search.type -  
> [Rawhide Kid] Error during transport action execution.  
> org.elasticsearch.common.util.concurrent.EsRejectedExecutionException:  
> rejected execution of  
> [org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2]  
> at  
> org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:35)  
> at  
> java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)  
> at  
> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
> 
> Why was it that the EsRejectedExecutionException didn't show up in the  
> stack trace of the RemoteTransportException that showed up in my client  
> code?
> 
> Best,
> 
> Justin
> 
> --  
> 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).

--  
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:10am UTC](https://discuss.elastic.co/t/remotetransportexception-without-root-cause/14062/3 "2017-07-06T02:10:40Z")

</div>


