Exception upon receiving messages


(dsj) #1

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


(Shay Banon) #2

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 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


(system) #3