# Bulk update request results in java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map

**URL:** <https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603>\
**Category:** Elasticsearch\
**Created:** [November 26, 2013, 8:05pm UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603 "2013-11-26T20:05:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stine](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Stine](https://discuss.elastic.co/u/Stine)\
**Post date:** [November 26, 2013, 8:05pm UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/1 "2013-11-26T20:05:47Z")

</div>

Hi,

when I do this bulk update request:

```
        transportClient.prepareIndex("index", "type", 

```

"1").setSource("name", "Anna").execute().actionGet();  
transportClient.prepareIndex("index", "type",  
"2").setSource("name", "Peter").execute().actionGet();

```
        final BulkRequestBuilder bulkRequest = 

```

transportClient.prepareBulk();  
bulkRequest.add(transportClient.prepareUpdate("index", "type",  
"1").setScript("ctx.\_source.age=age;").addScriptParam("age", 24));  
bulkRequest.add(transportClient.prepareUpdate("index", "type",  
"2").setScript("ctx.\_source.age=age;").addScriptParam("age", 35));  
bulkRequest.execute().actionGet();

I get a ClassCastException:

java.lang.ClassCastException: java.lang.String cannot be cast to  
java.util.Map  
at  
org.elasticsearch.common.io.stream.StreamInput.readMap(StreamInput.java:304)  
at  
org.elasticsearch.transport.TransportRequest.readFrom(TransportRequest.java:86)  
at org.elasticsearch.action.ActionRequest.readFrom(ActionRequest.java:69)  
at  
org.elasticsearch.action.support.replication.ShardReplicationOperationRequest.readFrom(ShardReplicationOperationRequest.java:160)  
at  
org.elasticsearch.action.index.IndexRequest.readFrom(IndexRequest.java:609)  
at org.elasticsearch.action.bulk.BulkRequest.readFrom(BulkRequest.java:437)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:204)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:108)  
at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
at  
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)  
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:268)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)

Any idea what I am doing wrong?

Thanks,  
Stine

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 27, 2013, 10:17am UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/2 "2013-11-27T10:17:32Z")

</div>

Hey,

looks ok from my birds eye view, can you tell us which elasticsearch  
version you are using, so we can try and reproduce?

--Alex

On Tue, Nov 26, 2013 at 9:05 PM, Stine [stinesplace@gmail.com](mailto:stinesplace@gmail.com) wrote:

> Hi,
> 
> when I do this bulk update request:
> 
> ```
> transportClient.prepareIndex("index", "type",
> 
> ```
> 
> "1").setSource("name", "Anna").execute().actionGet();  
> transportClient.prepareIndex("index", "type",  
> "2").setSource("name", "Peter").execute().actionGet();
> 
> ```
> final BulkRequestBuilder bulkRequest =
> 
> ```
> 
> transportClient.prepareBulk();  
> bulkRequest.add(transportClient.prepareUpdate("index", "type",  
> "1").setScript("ctx.\_source.age=age;").addScriptParam("age", 24));  
> bulkRequest.add(transportClient.prepareUpdate("index", "type",  
> "2").setScript("ctx.\_source.age=age;").addScriptParam("age", 35));  
> bulkRequest.execute().actionGet();
> 
> I get a ClassCastException:
> 
> java.lang.ClassCastException: java.lang.String cannot be cast to  
> java.util.Map  
> at  
> org.elasticsearch.common.io.stream.StreamInput.readMap(StreamInput.java:304)  
> at  
> org.elasticsearch.transport.TransportRequest.readFrom(TransportRequest.java:86)  
> at org.elasticsearch.action.ActionRequest.readFrom(ActionRequest.java:69)  
> at  
> org.elasticsearch.action.support.replication.ShardReplicationOperationRequest.readFrom(ShardReplicationOperationRequest.java:160)  
> at  
> org.elasticsearch.action.index.IndexRequest.readFrom(IndexRequest.java:609)  
> at org.elasticsearch.action.bulk.BulkRequest.readFrom(BulkRequest.java:437)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:204)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:108)  
> at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
> at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
> at  
> org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)  
> 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:268)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:724)
> 
> Any idea what I am doing wrong?
> 
> Thanks,  
> Stine
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8GBq0sZShLJC22HwFfsAhE%2BZpWVX2H\_ijV8yDD5g5K6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8GBq0sZShLJC22HwFfsAhE%2BZpWVX2H_ijV8yDD5g5K6g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Stine\_Sondergaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stine_sondergaard/32/1958_2.png) [@Stine\_Sondergaard](https://discuss.elastic.co/u/Stine_Sondergaard)\
**Post date:** [November 27, 2013, 10:51am UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/3 "2013-11-27T10:51:08Z")

</div>

It was 0.90.7 🙂

On 27 Nov 2013, at 11:17, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> looks ok from my birds eye view, can you tell us which elasticsearch version you are using, so we can try and reproduce?
> 
> --Alex
> 
> On Tue, Nov 26, 2013 at 9:05 PM, Stine [stinesplace@gmail.com](mailto:stinesplace@gmail.com) wrote:  
> Hi,
> 
> when I do this bulk update request:
> 
> ```
> transportClient.prepareIndex("index", "type", "1").setSource("name", "Anna").execute().actionGet();
> transportClient.prepareIndex("index", "type", "2").setSource("name", "Peter").execute().actionGet();
> 
> final BulkRequestBuilder bulkRequest = transportClient.prepareBulk();
> bulkRequest.add(transportClient.prepareUpdate("index", "type", "1").setScript("ctx._source.age=age;").addScriptParam("age", 24));
> bulkRequest.add(transportClient.prepareUpdate("index", "type", "2").setScript("ctx._source.age=age;").addScriptParam("age", 35));
> bulkRequest.execute().actionGet();
> 
> ```
> 
> I get a ClassCastException:
> 
> java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map  
> at org.elasticsearch.common.io.stream.StreamInput.readMap(StreamInput.java:304)  
> at org.elasticsearch.transport.TransportRequest.readFrom(TransportRequest.java:86)  
> at org.elasticsearch.action.ActionRequest.readFrom(ActionRequest.java:69)  
> at org.elasticsearch.action.support.replication.ShardReplicationOperationRequest.readFrom(ShardReplicationOperationRequest.java:160)  
> at org.elasticsearch.action.index.IndexRequest.readFrom(IndexRequest.java:609)  
> at org.elasticsearch.action.bulk.BulkRequest.readFrom(BulkRequest.java:437)  
> at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:204)  
> at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:108)  
> at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
> at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
> at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)  
> at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)  
> at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
> at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)  
> at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)  
> 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:268)  
> at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:724)
> 
> Any idea what I am doing wrong?
> 
> Thanks,  
> Stine
> 
> --  
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/48161ae3-e09f-4554-b73f-df5ce15e960c%40googlegroups.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 a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/pNFCR-Iaims/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pNFCR-Iaims/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8GBq0sZShLJC22HwFfsAhE%2BZpWVX2H\_ijV8yDD5g5K6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8GBq0sZShLJC22HwFfsAhE%2BZpWVX2H_ijV8yDD5g5K6g%40mail.gmail.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/50632FC2-7B60-4F46-B198-A7477A7708D1%40stinesplace.com](https://groups.google.com/d/msgid/elasticsearch/50632FC2-7B60-4F46-B198-A7477A7708D1%40stinesplace.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 27, 2013, 3:11pm UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/4 "2013-11-27T15:11:49Z")

</div>

Is the exception reproducible? If not, it may be a race condition inherent  
to bulk update operations executing in parallel on replica shards.

Can you try if setting replica level 0 will work without error?

Jörg

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkLBsGztsak\_Yn7Wt9KJBFmTMhTSwPv%2BD49d8efCby5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkLBsGztsak_Yn7Wt9KJBFmTMhTSwPv%2BD49d8efCby5w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Stine\_Sondergaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stine_sondergaard/32/1958_2.png) [@Stine\_Sondergaard](https://discuss.elastic.co/u/Stine_Sondergaard)\
**Post date:** [November 27, 2013, 3:47pm UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/5 "2013-11-27T15:47:06Z")

</div>

This is really embarrassing! When I was just trying to reproduce the error it worked just fine! Think I must have been running version 0.90.1 yesterday when I actually thought I was running version 0.90.7. When doing that I am indeed able to reproduce the error. I am so sorry for wasting peoples time. Thanks a lot for your messages though.

-Stine

On 27 Nov 2013, at 16:11, [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Is the exception reproducible? If not, it may be a race condition inherent to bulk update operations executing in parallel on replica shards.
> 
> Can you try if setting replica level 0 will work without error?
> 
> Jörg
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/pNFCR-Iaims/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pNFCR-Iaims/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkLBsGztsak\_Yn7Wt9KJBFmTMhTSwPv%2BD49d8efCby5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkLBsGztsak_Yn7Wt9KJBFmTMhTSwPv%2BD49d8efCby5w%40mail.gmail.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8952A20E-47CC-4FDF-839D-7AC59CD1A169%40stinesplace.com](https://groups.google.com/d/msgid/elasticsearch/8952A20E-47CC-4FDF-839D-7AC59CD1A169%40stinesplace.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 27, 2013, 3:56pm UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/6 "2013-11-27T15:56:34Z")

</div>

You're welcome.

This sounds odd but I'm glad to hear about failures and exceptions, even  
non-reproducible ones or old ones. This helps to identify flaws and make ES  
better and this is surely not a waste of time.

Jörg

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGsNy4NjvDnK1bDS2EtGqDJzcKmy5Xo%3DxHPC6VXBFXQSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGsNy4NjvDnK1bDS2EtGqDJzcKmy5Xo%3DxHPC6VXBFXQSg%40mail.gmail.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:04am UTC](https://discuss.elastic.co/t/bulk-update-request-results-in-java-lang-classcastexception-java-lang-string-cannot-be-cast-to-java-util-map/14603/7 "2017-07-06T02:04:31Z")

</div>


