NPE in 0.90.6 when asking for pretty formatted output

Anyone else having a problem with queries in 0.90.6 that request pretty
formatted output? These same queries worked in 0.90.5 just fine. When I
specify the pretty=true query parameter, I'm getting this exception on the
server:

org.elasticsearch.action.search.ReduceSearchPhaseException: Failed to
execute phase [merge], [reduce]
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.finishHim(TransportSearchDfsQueryThenFetchAction.java:281)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:255)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:407)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeFetch(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$5.run(TransportSearchDfsQueryThenFetchAction.java:233)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator._writeBytes(UTF8JsonGenerator.java:1125)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator.writeRaw(UTF8JsonGenerator.java:603)
at
org.elasticsearch.common.xcontent.json.JsonXContentGenerator.close(JsonXContentGenerator.java:332)
at
org.elasticsearch.common.xcontent.XContentBuilder.close(XContentBuilder.java:1051)
at
org.elasticsearch.common.xcontent.XContentBuilder.bytes(XContentBuilder.java:1067)
at
org.elasticsearch.http.netty.NettyHttpChannel.sendResponse(NettyHttpChannel.java:111)
...

Thanks,
Sean

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

cannot reproduce this yet, can you please post your query?

this works fine for me: http://localhost:9200/_search?pretty=true

Am Dienstag, 5. November 2013 18:18:02 UTC+1 schrieb thesu...@gmail.com:

Anyone else having a problem with queries in 0.90.6 that request pretty
formatted output? These same queries worked in 0.90.5 just fine. When I
specify the pretty=true query parameter, I'm getting this exception on the
server:

org.elasticsearch.action.search.ReduceSearchPhaseException: Failed to
execute phase [merge], [reduce]
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.finishHim(TransportSearchDfsQueryThenFetchAction.java:281)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:255)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:407)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeFetch(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$5.run(TransportSearchDfsQueryThenFetchAction.java:233)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator._writeBytes(UTF8JsonGenerator.java:1125)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator.writeRaw(UTF8JsonGenerator.java:603)
at
org.elasticsearch.common.xcontent.json.JsonXContentGenerator.close(JsonXContentGenerator.java:332)
at
org.elasticsearch.common.xcontent.XContentBuilder.close(XContentBuilder.java:1051)
at
org.elasticsearch.common.xcontent.XContentBuilder.bytes(XContentBuilder.java:1067)
at
org.elasticsearch.http.netty.NettyHttpChannel.sendResponse(NettyHttpChannel.java:111)
...

Thanks,
Sean

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Created an issue w/ gist:
NPE when closing XContentBuilder and using 'pretty' query parameter · Issue #4100 · elastic/elasticsearch · GitHub

On Tuesday, November 5, 2013 2:52:36 PM UTC-5, Hendrik wrote:

cannot reproduce this yet, can you please post your query?

this works fine for me: http://localhost:9200/_search?pretty=true

Am Dienstag, 5. November 2013 18:18:02 UTC+1 schrieb thesu...@gmail.com:

Anyone else having a problem with queries in 0.90.6 that request pretty
formatted output? These same queries worked in 0.90.5 just fine. When I
specify the pretty=true query parameter, I'm getting this exception on the
server:

org.elasticsearch.action.search.ReduceSearchPhaseException: Failed to
execute phase [merge], [reduce]
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.finishHim(TransportSearchDfsQueryThenFetchAction.java:281)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:255)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$6.onResult(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:407)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeFetch(TransportSearchDfsQueryThenFetchAction.java:249)
at
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$5.run(TransportSearchDfsQueryThenFetchAction.java:233)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator._writeBytes(UTF8JsonGenerator.java:1125)
at
org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator.writeRaw(UTF8JsonGenerator.java:603)
at
org.elasticsearch.common.xcontent.json.JsonXContentGenerator.close(JsonXContentGenerator.java:332)
at
org.elasticsearch.common.xcontent.XContentBuilder.close(XContentBuilder.java:1051)
at
org.elasticsearch.common.xcontent.XContentBuilder.bytes(XContentBuilder.java:1067)
at
org.elasticsearch.http.netty.NettyHttpChannel.sendResponse(NettyHttpChannel.java:111)
...

Thanks,
Sean

--
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.
For more options, visit https://groups.google.com/groups/opt_out.