Npe

Today I got a NPE while querying. Maybe the node was still not ready,
but an exception shouldn't be thrown.

Kind Regards,
Peter.

org.elasticsearch.transport.RemoteTransportException: [Coachwhip]
[inet[/127.0.0.1:9300]][indices/search]
Caused by: java.lang.NullPointerException
at
org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(HandlesStreamOutput.java:
54)
at
org.elasticsearch.search.SearchShardTarget.writeTo(SearchShardTarget.java:
89)
at
org.elasticsearch.action.search.ShardSearchFailure.writeTo(ShardSearchFailure.java:
120)
at
org.elasticsearch.action.search.SearchResponse.writeTo(SearchResponse.java:
270)
at
org.elasticsearch.transport.support.TransportStreams.buildResponse(TransportStreams.java:
141)
at
org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:
72)
at
org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:
65)
at org.elasticsearch.action.search.TransportSearchAction
$TransportHandler$1.onResponse(TransportSearchAction.java:117)
at org.elasticsearch.action.search.TransportSearchAction
$TransportHandler$1.onResponse(TransportSearchAction.java:114)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.invokeListener(TransportSearchTypeAction.java:339)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.innerFinishHim(TransportSearchQueryThenFetchAction.java:
180)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.finishHim(TransportSearchQueryThenFetchAction.java:164)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.access$400(TransportSearchQueryThenFetchAction.java:59)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$3.onResult(TransportSearchQueryThenFetchAction.java:145)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$3.onResult(TransportSearchQueryThenFetchAction.java:140)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:
312)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.executeFetch(TransportSearchQueryThenFetchAction.java:
140)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.access$200(TransportSearchQueryThenFetchAction.java:59)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$2.run(TransportSearchQueryThenFetchAction.java:127)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor

Its a bug, I pushed a fix for it.
On Monday, January 17, 2011 at 1:52 PM, Karussell wrote:

Today I got a NPE while querying. Maybe the node was still not ready,
but an exception shouldn't be thrown.

Kind Regards,
Peter.

org.elasticsearch.transport.RemoteTransportException: [Coachwhip]
[inet[/127.0.0.1:9300]][indices/search]
Caused by: java.lang.NullPointerException
at
org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(HandlesStreamOutput.java:
54)
at
org.elasticsearch.search.SearchShardTarget.writeTo(SearchShardTarget.java:
89)
at
org.elasticsearch.action.search.ShardSearchFailure.writeTo(ShardSearchFailure.java:
120)
at
org.elasticsearch.action.search.SearchResponse.writeTo(SearchResponse.java:
270)
at
org.elasticsearch.transport.support.TransportStreams.buildResponse(TransportStreams.java:
141)
at
org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:
72)
at
org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:
65)
at org.elasticsearch.action.search.TransportSearchAction
$TransportHandler$1.onResponse(TransportSearchAction.java:117)
at org.elasticsearch.action.search.TransportSearchAction
$TransportHandler$1.onResponse(TransportSearchAction.java:114)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction
$BaseAsyncAction.invokeListener(TransportSearchTypeAction.java:339)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.innerFinishHim(TransportSearchQueryThenFetchAction.java:
180)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.finishHim(TransportSearchQueryThenFetchAction.java:164)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.access$400(TransportSearchQueryThenFetchAction.java:59)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$3.onResult(TransportSearchQueryThenFetchAction.java:145)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$3.onResult(TransportSearchQueryThenFetchAction.java:140)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:
312)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.executeFetch(TransportSearchQueryThenFetchAction.java:
140)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction.access$200(TransportSearchQueryThenFetchAction.java:59)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
$AsyncAction$2.run(TransportSearchQueryThenFetchAction.java:127)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor