ActionRequestValidationException

I am receiving an ActionRequestValidationException when issuing bulk
requests through the Java API.

The documentation contains no information about this error.

Please let me know why I am receiving this exception and what I need
to do in order to fix it. Thanks.

Here is the stack trace and full exception message:

org.elasticsearch.action.ActionRequestValidationException: Validation
Failed: 1: no requests added;
at org.elasticsearch.action.Actions.addValidationError(Actions.java:
29)
at
org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:
255)
at
org.elasticsearch.action.support.BaseAction.execute(BaseAction.java:
55)
at org.elasticsearch.action.bulk.TransportBulkAction
$TransportHandler.messageReceived(TransportBulkAction.java:257)
at org.elasticsearch.action.bulk.TransportBulkAction
$TransportHandler.messageReceived(TransportBulkAction.java:248)
at
org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:
305)
at
org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:
207)
at
org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:
147)
at
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:
103)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:
80)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline
$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:
783)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:
81)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
559)
at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:
274)
at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:
261)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:
351)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:
282)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:
202)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:
108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker
$1.run(DeadLockProofWorker.java:44)
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)

On Jan 10, 11:23 am, Frank LaRosa fr...@studyblue.com wrote:

I am receiving an ActionRequestValidationException when issuing bulk
requests through the Java API.

The documentation contains no information about this error.

Please let me know why I am receiving this exception and what I need
to do in order to fix it. Thanks.

Note that I successfully inserted a large number of documents (over 6
million) prior to receiving this exception.

I deleted some documents just before I started getting the error
(using delete by query).

On Jan 10, 11:23 am, Frank LaRosa fr...@studyblue.com wrote:

I am receiving an ActionRequestValidationException when issuing bulk
requests through the Java API.

The documentation contains no information about this error.

Please let me know why I am receiving this exception and what I need
to do in order to fix it. Thanks.

It tells you the problem: "no requests added", you did not add any requests
to teh bulk request (index / delete).

On Tue, Jan 10, 2012 at 7:26 PM, Frank LaRosa frank@studyblue.com wrote:

Here is the stack trace and full exception message:

org.elasticsearch.action.ActionRequestValidationException: Validation
Failed: 1: no requests added;
at org.elasticsearch.action.Actions.addValidationError(Actions.java:
29)
at
org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:
255)
at
org.elasticsearch.action.support.BaseAction.execute(BaseAction.java:
55)
at org.elasticsearch.action.bulk.TransportBulkAction
$TransportHandler.messageReceived(TransportBulkAction.java:257)
at org.elasticsearch.action.bulk.TransportBulkAction
$TransportHandler.messageReceived(TransportBulkAction.java:248)
at

org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:
305)
at

org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:
207)
at

org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:
147)
at

org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:
103)
at

org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:
80)
at

org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline
$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:
783)
at

org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:
81)
at

org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
564)
at

org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:
559)
at

org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:
274)
at

org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:
261)
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:
351)
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:
282)
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:
202)
at

org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:
108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker
$1.run(DeadLockProofWorker.java:44)
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)

On Jan 10, 11:23 am, Frank LaRosa fr...@studyblue.com wrote:

I am receiving an ActionRequestValidationException when issuing bulk
requests through the Java API.

The documentation contains no information about this error.

Please let me know why I am receiving this exception and what I need
to do in order to fix it. Thanks.

1 Like