# Intermittent SearchPhaseExecutionException, caused by NPE

**URL:** <https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335>\
**Category:** Elasticsearch\
**Created:** [May 3, 2011, 8:28pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335 "2011-05-03T20:28:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_k/32/2129_2.png) [@James\_K](https://discuss.elastic.co/u/James_K)\
**Post date:** [May 3, 2011, 8:28pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/1 "2011-05-03T20:28:24Z")

</div>

Hello everyone, I'm seeing intermittent failures using Elasticsearch v  
0.16.0. The same query can work and fail. There may be some  
correlation with a bulk load running simultaneously. Has anyone seen  
similar behavior?

Here's my query (this is a histogram, but the same query w/o the  
facets will exhibit the same problem)

{"filter":{"and":[{"terms":{"forum\_id":[2]}},{"query":{"query\_string":  
{"default\_field":"body","query":"testing"}}}]},"facets":{"histo1":  
{"date\_histogram":{"field":"date","interval":"7d"}}}}'

Here's the error from elastic search:

{"error":"SearchPhaseExecutionException[Failed to execute phase  
[query], total failure; shardFailures {[2ZvjA8pITz2jpyJYq1kinw]  
[landscape][0]: QueryPhaseExecutionException[[landscape][0]:  
query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
[1]: QueryPhaseExecutionException[[landscape][1]:  
query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
[2]: QueryPhaseExecutionException[[landscape][2]:  
query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
[3]: QueryPhaseExecutionException[[landscape][3]:  
query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
[4]: QueryPhaseExecutionException[[landscape][4]:  
query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
execute main query]]; nested: }]","status":500}

And a slice of the elastic search log file (this NPE can happen even  
when the query returns successfully)

[2011-05-03 16:21:52,422][DEBUG][action.search.type] [Banner,  
Betty Ross] [landscape][4], node[2ZvjA8pITz2jpyJYq1kinw], [P],  
s[STARTED]: Failed to execute  
[org.elasticsearch.action.search.SearchRequest@4f2ff706]  
org.elasticsearch.search.query.QueryPhaseExecutionException:  
[landscape][4]: query[ConstantScore(_:_)],from[0],size[10]: Query  
Failed [Failed to execute main query]  
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:  
215)  
at  
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
222)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
134)  
at  
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
76)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction$1.run(TransportSearchTypeAction.java:151)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:680)  
Caused by: java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 3, 2011, 8:47pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/2 "2011-05-03T20:47:37Z")

</div>

Can you gist the rest of the stack trace? The one below the NPE is the important part.  
On Tuesday, May 3, 2011 at 11:28 PM, James K wrote:

> Hello everyone, I'm seeing intermittent failures using Elasticsearch v  
> 0.16.0. The same query can work and fail. There may be some  
> correlation with a bulk load running simultaneously. Has anyone seen  
> similar behavior?
> 
> Here's my query (this is a histogram, but the same query w/o the  
> facets will exhibit the same problem)
> 
> {"filter":{"and":[{"terms":{"forum\_id":[2]}},{"query":{"query\_string":  
> {"default\_field":"body","query":"testing"}}}]},"facets":{"histo1":  
> {"date\_histogram":{"field":"date","interval":"7d"}}}}'
> 
> Here's the error from Elasticsearch:
> 
> {"error":"SearchPhaseExecutionException[Failed to execute phase  
> [query], total failure; shardFailures {[2ZvjA8pITz2jpyJYq1kinw]  
> [landscape][0]: QueryPhaseExecutionException[[landscape][0]:  
> query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> [1]: QueryPhaseExecutionException[[landscape][1]:  
> query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> [2]: QueryPhaseExecutionException[[landscape][2]:  
> query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> [3]: QueryPhaseExecutionException[[landscape][3]:  
> query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> [4]: QueryPhaseExecutionException[[landscape][4]:  
> query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> execute main query]]; nested: }]","status":500}
> 
> And a slice of the Elasticsearch log file (this NPE can happen even  
> when the query returns successfully)
> 
> [2011-05-03 16:21:52,422][DEBUG][action.search.type] [Banner,  
> Betty Ross] [landscape][4], node[2ZvjA8pITz2jpyJYq1kinw], [P],  
> s[STARTED]: Failed to execute  
> [org.elasticsearch.action.search.SearchRequest@4f2ff706]  
> org.elasticsearch.search.query.QueryPhaseExecutionException:  
> [landscape][4]: query[ConstantScore(_:_)],from[0],size[10]: Query  
> Failed [Failed to execute main query]  
> at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:  
> 215)  
> at  
> org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
> 222)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
> 134)  
> at  
> org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
> $AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
> 76)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction$1.run(TransportSearchTypeAction.java:151)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:680)  
> Caused by: java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![James\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_k/32/2129_2.png) [@James\_K](https://discuss.elastic.co/u/James_K)\
**Post date:** [May 3, 2011, 8:52pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/3 "2011-05-03T20:52:23Z")

</div>

Sure, here [Elastic Search Errors · GitHub](https://gist.github.com/954205)

On May 3, 4:47 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Can you gist the rest of the stack trace? The one below the NPE is the important part.
> 
> On Tuesday, May 3, 2011 at 11:28 PM, James K wrote:
> 
> > Hello everyone, I'm seeing intermittent failures using Elasticsearch v  
> > 0.16.0. The same query can work and fail. There may be some  
> > correlation with a bulk load running simultaneously. Has anyone seen  
> > similar behavior?
> 
> > Here's my query (this is a histogram, but the same query w/o the  
> > facets will exhibit the same problem)
> 
> > {"filter":{"and":[{"terms":{"forum\_id":[2]}},{"query":{"query\_string":  
> > {"default\_field":"body","query":"testing"}}}]},"facets":{"histo1":  
> > {"date\_histogram":{"field":"date","interval":"7d"}}}}'
> 
> > Here's the error from Elasticsearch:
> 
> > {"error":"SearchPhaseExecutionException[Failed to execute phase  
> > [query], total failure; shardFailures {[2ZvjA8pITz2jpyJYq1kinw]  
> > [landscape][0]: QueryPhaseExecutionException[[landscape][0]:  
> > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > [1]: QueryPhaseExecutionException[[landscape][1]:  
> > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > [2]: QueryPhaseExecutionException[[landscape][2]:  
> > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > [3]: QueryPhaseExecutionException[[landscape][3]:  
> > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > [4]: QueryPhaseExecutionException[[landscape][4]:  
> > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > execute main query]]; nested: }]","status":500}
> 
> > And a slice of the Elasticsearch log file (this NPE can happen even  
> > when the query returns successfully)
> 
> > [2011-05-03 16:21:52,422][DEBUG][action.search.type] [Banner,  
> > Betty Ross] [landscape][4], node[2ZvjA8pITz2jpyJYq1kinw], [P],  
> > s[STARTED]: Failed to execute  
> > [org.elasticsearch.action.search.SearchRequest@4f2ff706]  
> > org.elasticsearch.search.query.QueryPhaseExecutionException:  
> > [landscape][4]: query[ConstantScore(_:_)],from[0],size[10]: Query  
> > Failed [Failed to execute main query]  
> > at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:  
> > 215)  
> > at  
> > org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
> > 222)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
> > 134)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
> > $AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
> > 76)  
> > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > $BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)  
> > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > $BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)  
> > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > $BaseAsyncAction$1.run(TransportSearchTypeAction.java:151)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.run(ThreadPoolExecutor.java:908)  
> > at java.lang.Thread.run(Thread.java:680)  
> > Caused by: java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 3, 2011, 8:53pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/4 "2011-05-03T20:53:55Z")

</div>

Heya,

Yes, this has been fixed in 0.16 branch, and will be part of 0.16.1 release, slated to happen in a few days.

-shay.banon  
On Tuesday, May 3, 2011 at 11:52 PM, James K wrote:

> Sure, here [Elastic Search Errors · GitHub](https://gist.github.com/954205)
> 
> On May 3, 4:47 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Can you gist the rest of the stack trace? The one below the NPE is the important part.
> > 
> > On Tuesday, May 3, 2011 at 11:28 PM, James K wrote:
> > 
> > > Hello everyone, I'm seeing intermittent failures using Elasticsearch v  
> > > 0.16.0. The same query can work and fail. There may be some  
> > > correlation with a bulk load running simultaneously. Has anyone seen  
> > > similar behavior?
> > 
> > > Here's my query (this is a histogram, but the same query w/o the  
> > > facets will exhibit the same problem)
> > 
> > > {"filter":{"and":[{"terms":{"forum\_id":[2]}},{"query":{"query\_string":  
> > > {"default\_field":"body","query":"testing"}}}]},"facets":{"histo1":  
> > > {"date\_histogram":{"field":"date","interval":"7d"}}}}'
> > 
> > > Here's the error from Elasticsearch:
> > 
> > > {"error":"SearchPhaseExecutionException[Failed to execute phase  
> > > [query], total failure; shardFailures {[2ZvjA8pITz2jpyJYq1kinw]  
> > > [landscape][0]: QueryPhaseExecutionException[[landscape][0]:  
> > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > [1]: QueryPhaseExecutionException[[landscape][1]:  
> > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > [2]: QueryPhaseExecutionException[[landscape][2]:  
> > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > [3]: QueryPhaseExecutionException[[landscape][3]:  
> > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > [4]: QueryPhaseExecutionException[[landscape][4]:  
> > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > execute main query]]; nested: }]","status":500}
> > 
> > > And a slice of the Elasticsearch log file (this NPE can happen even  
> > > when the query returns successfully)
> > 
> > > [2011-05-03 16:21:52,422][DEBUG][action.search.type] [Banner,  
> > > Betty Ross] [landscape][4], node[2ZvjA8pITz2jpyJYq1kinw], [P],  
> > > s[STARTED]: Failed to execute  
> > > [org.elasticsearch.action.search.SearchRequest@4f2ff706]  
> > > org.elasticsearch.search.query.QueryPhaseExecutionException:  
> > > [landscape][4]: query[ConstantScore(_:_)],from[0],size[10]: Query  
> > > Failed [Failed to execute main query]  
> > > at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:  
> > > 215)  
> > > at  
> > > org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
> > > 222)  
> > > at  
> > > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
> > > 134)  
> > > at  
> > > org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
> > > $AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
> > > 76)  
> > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > $BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)  
> > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > $BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)  
> > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > $BaseAsyncAction$1.run(TransportSearchTypeAction.java:151)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > at java.lang.Thread.run(Thread.java:680)  
> > > Caused by: java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![James\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_k/32/2129_2.png) [@James\_K](https://discuss.elastic.co/u/James_K)\
**Post date:** [May 3, 2011, 9:06pm UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/5 "2011-05-03T21:06:22Z")

</div>

Great, thanks for the speedy feedback!

On May 3, 4:53 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Heya,
> 
> Yes, this has been fixed in 0.16 branch, and will be part of 0.16.1 release, slated to happen in a few days.
> 
> -shay.banon
> 
> On Tuesday, May 3, 2011 at 11:52 PM, James K wrote:
> 
> > Sure, herehttps://gist.github.com/954205
> 
> > On May 3, 4:47 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Can you gist the rest of the stack trace? The one below the NPE is the important part.
> 
> > > On Tuesday, May 3, 2011 at 11:28 PM, James K wrote:
> > > 
> > > > Hello everyone, I'm seeing intermittent failures using Elasticsearch v  
> > > > 0.16.0. The same query can work and fail. There may be some  
> > > > correlation with a bulk load running simultaneously. Has anyone seen  
> > > > similar behavior?
> 
> > > > Here's my query (this is a histogram, but the same query w/o the  
> > > > facets will exhibit the same problem)
> 
> > > > {"filter":{"and":[{"terms":{"forum\_id":[2]}},{"query":{"query\_string":  
> > > > {"default\_field":"body","query":"testing"}}}]},"facets":{"histo1":  
> > > > {"date\_histogram":{"field":"date","interval":"7d"}}}}'
> 
> > > > Here's the error from Elasticsearch:
> 
> > > > {"error":"SearchPhaseExecutionException[Failed to execute phase  
> > > > [query], total failure; shardFailures {[2ZvjA8pITz2jpyJYq1kinw]  
> > > > [landscape][0]: QueryPhaseExecutionException[[landscape][0]:  
> > > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > > [1]: QueryPhaseExecutionException[[landscape][1]:  
> > > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > > [2]: QueryPhaseExecutionException[[landscape][2]:  
> > > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > > [3]: QueryPhaseExecutionException[[landscape][3]:  
> > > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > > execute main query]]; nested: }{[2ZvjA8pITz2jpyJYq1kinw][landscape]  
> > > > [4]: QueryPhaseExecutionException[[landscape][4]:  
> > > > query[ConstantScore(_:_)],from[0],size[10]: Query Failed [Failed to  
> > > > execute main query]]; nested: }]","status":500}
> 
> > > > And a slice of the Elasticsearch log file (this NPE can happen even  
> > > > when the query returns successfully)
> 
> > > > [2011-05-03 16:21:52,422][DEBUG][action.search.type] [Banner,  
> > > > Betty Ross] [landscape][4], node[2ZvjA8pITz2jpyJYq1kinw], [P],  
> > > > s[STARTED]: Failed to execute  
> > > > [org.elasticsearch.action.search.SearchRequest@4f2ff706]  
> > > > org.elasticsearch.search.query.QueryPhaseExecutionException:  
> > > > [landscape][4]: query[ConstantScore(_:_)],from[0],size[10]: Query  
> > > > Failed [Failed to execute main query]  
> > > > at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:  
> > > > 215)  
> > > > at  
> > > > org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
> > > > 222)  
> > > > at  
> > > > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
> > > > 134)  
> > > > at  
> > > > org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
> > > > $AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
> > > > 76)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > > $BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > > $BaseAsyncAction.access$000(TransportSearchTypeAction.java:75)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> > > > $BaseAsyncAction$1.run(TransportSearchTypeAction.java:151)  
> > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > > at java.lang.Thread.run(Thread.java:680)  
> > > > Caused by: java.lang.NullPointerException

---

<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, 4:07am UTC](https://discuss.elastic.co/t/intermittent-searchphaseexecutionexception-caused-by-npe/4335/6 "2017-07-06T04:07:04Z")

</div>


