# Erratic client NullPointerException

**URL:** <https://discuss.elastic.co/t/erratic-client-nullpointerexception/13755>\
**Category:** Elasticsearch\
**Created:** [September 25, 2013, 3:57pm UTC](https://discuss.elastic.co/t/erratic-client-nullpointerexception/13755 "2013-09-25T15:57:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caoilte\_O\_Connor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/caoilte_o_connor/32/1762_2.png) [@Caoilte\_O\_Connor](https://discuss.elastic.co/u/Caoilte_O_Connor)\
**Post date:** [September 25, 2013, 3:57pm UTC](https://discuss.elastic.co/t/erratic-client-nullpointerexception/13755/1 "2013-09-25T15:57:51Z")

</div>

Hi,  
We just started seeing the following NPE an elasticsearch-0.90.2 single  
node CI environment during tests.

We're not sure where to start looking for what's going wrong as it looks  
from the code like its blowing up when its trying to tell us what the  
underlying error is.

org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to  
execute phase [query], total failure; shardFailures  
{[SMH17lhPRMOn2H-ouyV5EQ][catalogue][1]:  
QueryPhaseExecutionException[[catalogue][1]:  
query[ConstantScore(cache(\_type:item))],from[0],size[10]: Query Failed  
[Failed to execute main query]]; nested: NullPointerException;  
}{[SMH17lhPRMOn2H-ouyV5EQ][catalogue][2]:  
QueryPhaseExecutionException[[catalogue][2]:  
query[ConstantScore(cache(\_type:item))],from[0],size[10]: Query Failed  
[Failed to execute main query]]; nested: NullPointerException;  
}{[SMH17lhPRMOn2H-ouyV5EQ][catalogue][4]:  
QueryPhaseExecutionException[[catalogue][4]:  
query[ConstantScore(cache(\_type:item))],from[0],size[10]: Query Failed  
[Failed to execute main query]]; nested: NullPointerException;  
}{[SMH17lhPRMOn2H-ouyV5EQ][catalogue][0]:  
QueryPhaseExecutionException[[catalogue][0]:  
query[ConstantScore(cache(\_type:item))],from[0],size[10]: Query Failed  
[Failed to execute main query]]; nested: NullPointerException;  
}{[SMH17lhPRMOn2H-ouyV5EQ][catalogue][3]:  
QueryPhaseExecutionException[[catalogue][3]:  
query[ConstantScore(cache(\_type:item))],from[0],size[10]: Query Failed  
[Failed to execute main query]]; nested: NullPointerException; }  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:261)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:214)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:144)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:206)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:193)  
~[fnord.jar:0.0.1-211]  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:179)  
~[fnord.jar:0.0.1-211]  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)  
~[na:1.6.0\_24]  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
~[na:1.6.0\_24]  
at java.lang.Thread.run(Thread.java:679) [na:1.6.0\_24]

--  
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:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [October 2, 2013, 9:02pm UTC](https://discuss.elastic.co/t/erratic-client-nullpointerexception/13755/2 "2013-10-02T21:02:38Z")

</div>

There was some issue with filters producing NPEs that has been fixed not  
long ago - can you test with 0.90.5?

On Wed, Sep 25, 2013 at 6:57 PM, Caoilte O'Connor [caoilte@gmail.com](mailto:caoilte@gmail.com) wrote:

> Hi,  
> We just started seeing the following NPE an elasticsearch-0.90.2 single  
> node CI environment during tests.
> 
> We're not sure where to start looking for what's going wrong as it looks  
> from the code like its blowing up when its trying to tell us what the  
> underlying error is.
> 
> org.elasticsearch.action.\*\*search.\*\*SearchPhaseExecutionException: Failed  
> to execute phase [query], total failure; shardFailures  
> {[SMH17lhPRMOn2H-ouyV5EQ][\*_catalogue][1]: QueryPhaseExecutionException[[_  
> \*catalogue][1]: query[ConstantScore(cache(_\*\*type:item))],from[0],size[10]:  
> Query Failed [Failed to execute main query]]; nested: NullPointerException;  
> }{[SMH17lhPRMOn2H-ouyV5EQ][\*\*catalogue][2]: QueryPhaseExecutionException[[  
> \*\*catalogue][2]: query[ConstantScore(cache(_\*\*type:item))],from[0],size[10]:  
> Query Failed [Failed to execute main query]]; nested: NullPointerException;  
> }{[SMH17lhPRMOn2H-ouyV5EQ][\*\*catalogue][4]: QueryPhaseExecutionException[[  
> \*\*catalogue][4]: query[ConstantScore(cache(_\*\*type:item))],from[0],size[10]:  
> Query Failed [Failed to execute main query]]; nested: NullPointerException;  
> }{[SMH17lhPRMOn2H-ouyV5EQ][\*\*catalogue][0]: QueryPhaseExecutionException[[  
> \*\*catalogue][0]: query[ConstantScore(cache(_\*\*type:item))],from[0],size[10]:  
> Query Failed [Failed to execute main query]]; nested: NullPointerException;  
> }{[SMH17lhPRMOn2H-ouyV5EQ][\*\*catalogue][3]: QueryPhaseExecutionException[[  
> \*\*catalogue][3]: query[ConstantScore(cache(\_\*\*type:item))],from[0],size[10]:  
> Query Failed [Failed to execute main query]]; nested: NullPointerException;  
> }  
> at org.elasticsearch.action.\*\*search.type. **TransportSearchTypeAction$**  
> BaseAsyncAction.\*\*onFirstPhaseResult(\*\*TransportSearchTypeAction.\*\*java:261)  
> ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.action.\*\*search.type. **TransportSearchTypeAction$**  
> BaseAsyncAction$3.onFailure(\*\*TransportSearchTypeAction.\*\*java:214)  
> ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.search.\*\*action. **SearchServiceTransportAction.**  
> sendExecuteQuery(\*\*SearchServiceTransportAction.\*\*java:144)  
> ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.action.\*\*search.type.\*\*TransportSearchQueryThenFetchA  
> **ction$AsyncAction.sendExecuteFirstPhase(  
> TransportSearchQueryThenFetchA**ction.java:80) ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.action.\*\*search.type. **TransportSearchTypeAction$**  
> BaseAsyncAction.\*\*performFirstPhase(\*\*TransportSearchTypeAction.\*\*java:206)  
> ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.action.\*\*search.type. **TransportSearchTypeAction$**  
> BaseAsyncAction.\*\*performFirstPhase(\*\*TransportSearchTypeAction.\*\*java:193)  
> ~[fnord.jar:0.0.1-211]  
> at org.elasticsearch.action.\*\*search.type. **TransportSearchTypeAction$**  
> BaseAsyncAction$2.run(\*\*TransportSearchTypeAction.\*\*java:179)  
> ~[fnord.jar:0.0.1-211]  
> at java.util.concurrent.\*\*ThreadPoolExecutor.runWorker(\*\*ThreadPoolExecutor.java:1146)  
> ~[na:1.6.0\_24]  
> at java.util.concurrent.\*\*ThreadPoolExecutor$Worker.run(\*\*ThreadPoolExecutor.java:615)  
> ~[na:1.6.0\_24]  
> at java.lang.Thread.run(Thread.\*\*java:679) [na:1.6.0\_24]
> 
> --  
> 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:13am UTC](https://discuss.elastic.co/t/erratic-client-nullpointerexception/13755/3 "2017-07-06T02:13:58Z")

</div>


