# Exception upon receiving messages

**URL:** <https://discuss.elastic.co/t/exception-upon-receiving-messages/6414>\
**Category:** Elasticsearch\
**Created:** [January 17, 2012, 4:49pm UTC](https://discuss.elastic.co/t/exception-upon-receiving-messages/6414 "2012-01-17T16:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsj/32/2794_2.png) [@dsj](https://discuss.elastic.co/u/dsj)\
**Post date:** [January 17, 2012, 4:49pm UTC](https://discuss.elastic.co/t/exception-upon-receiving-messages/6414/1 "2012-01-17T16:49:47Z")

</div>

Hi Gents,

I'm using elasticsearch with graylog2 and i'm receiving an exception  
when messages are being received by the server.

[2012-01-17 15:15:21,401][DEBUG][action.bulk] [graylog2]  
[graylog2][0] failed to bulk item (index) index {[graylog2][message]  
[DqNqr2kmSWWQk\_prJsLLrQ], source[{"message":"Inside function","level":  
7,"host":"SomeString","\_log4netHostName":"SomeString","\_functionRequest":"/  
ConfigurationService/  
ConfigurationService.xml","facility":"SomeString.","file":"","full\_message":"Inside  
function","created\_at":1.326813320529E9,"line":-1,"streams":  
["4ecb8c99a2144a03dc000081","4ece78a4a2144a03dc00012e"],"\_Host":"SomeString"}]}  
org.elasticsearch.index.mapper.MapperParsingException: object mapping  
[streams] trying to serialize a value with no field associated with  
it, current value [4ecb8c99a2144a03dc000081]  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:  
573)  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:  
443)  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:  
577)  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:  
565)  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:  
435)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:  
465)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:  
414)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.prepareCreate(InternalIndexShard.java:  
285)  
at  
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:  
141)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction  
$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:  
487)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction  
$AsyncShardOperationAction  
$1.run(TransportShardReplicationOperationAction.java:400)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:  
1110)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:636)

Can you help me solve this problem?

Regards,  
Daniel

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 18, 2012, 8:55pm UTC](https://discuss.elastic.co/t/exception-upon-receiving-messages/6414/2 "2012-01-18T20:55:17Z")

</div>

This usually happens when a document is indexed with a field and a value,  
and then that field suddenly has an object value (or the other way around).

On Tue, Jan 17, 2012 at 6:49 PM, dsj [dasajo@gmail.com](mailto:dasajo@gmail.com) wrote:

> Hi Gents,
> 
> I'm using elasticsearch with graylog2 and i'm receiving an exception  
> when messages are being received by the server.
> 
> [2012-01-17 15:15:21,401][DEBUG][action.bulk] [graylog2]  
> [graylog2][0] failed to bulk item (index) index {[graylog2][message]  
> [DqNqr2kmSWWQk\_prJsLLrQ], source[{"message":"Inside function","level":
> 
> 7,"host":"SomeString","\_log4netHostName":"SomeString","\_functionRequest":"/  
> ConfigurationService/
> 
> ConfigurationService.xml","facility":"SomeString.","file":"","full\_message":"Inside  
> function","created\_at":1.326813320529E9,"line":-1,"streams":
> 
> ["4ecb8c99a2144a03dc000081","4ece78a4a2144a03dc00012e"],"\_Host":"SomeString"}]}  
> org.elasticsearch.index.mapper.MapperParsingException: object mapping  
> [streams] trying to serialize a value with no field associated with  
> it, current value [4ecb8c99a2144a03dc000081]  
> at
> 
> org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:  
> 573)  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:  
> 443)  
> at
> 
> org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:  
> 577)  
> at
> 
> org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:  
> 565)  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:  
> 435)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:  
> 465)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:  
> 414)  
> at
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.prepareCreate(InternalIndexShard.java:  
> 285)  
> at
> 
> org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:  
> 141)  
> at
> 
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
> 
> $AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:  
> 487)  
> at
> 
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction  
> $AsyncShardOperationAction  
> $1.run(TransportShardReplicationOperationAction.java:400)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:  
> 1110)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:603)  
> at java.lang.Thread.run(Thread.java:636)
> 
> Can you help me solve this problem?
> 
> Regards,  
> Daniel

---

<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, 3:42am UTC](https://discuss.elastic.co/t/exception-upon-receiving-messages/6414/3 "2017-07-06T03:42:16Z")

</div>


