Jackson numeric value JsonParseException - out of range

Hi all,

I'm having an error when trying to index a JSON document into elasticsearch.

Below follows the error:
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse
[value]
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:309)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:577)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:443)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:557)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:435)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
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.prepareIndex(InternalIndexShard.java:304)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:181)
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$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.elasticsearch.common.jackson.JsonParseException: Numeric
value (1.7976931348623157E308) out of range of long (-9223372036854775808 -
9223372036854775807)
at [Source: [B@1e01f19; line: 1, column: 12008]
at
org.elasticsearch.common.jackson.JsonParser._constructError(JsonParser.java:1432)
at
org.elasticsearch.common.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.reportOverflowLong(JsonParserBase.java:979)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.convertNumberToLong(JsonParserBase.java:862)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.getLongValue(JsonParserBase.java:635)
at
org.elasticsearch.common.xcontent.json.JsonXContentParser.doLongValue(JsonXContentParser.java:106)
at
org.elasticsearch.common.xcontent.support.AbstractXContentParser.longValue(AbstractXContentParser.java:70)
at
org.elasticsearch.index.mapper.core.LongFieldMapper.parseCreateField(LongFieldMapper.java:231)
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:296)
... 22 more

Can anyone help to solve this error?

Thanks in advance!

Hello!

It seems that the value you are trying to index - 1.7976931348623157E308 into long field type is too large for that type and that's why ElasticSearch throws that exception.

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Hi all,

I'm having an error when trying to index a JSON document into elasticsearch.

Below follows the error:

org.elasticsearch.index.mapper.MapperParsingException: Failed to parse [value]

at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:309)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:577)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:443)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:557)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:435)

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)

at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)

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.prepareIndex(InternalIndexShard.java:304)

at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:181)

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$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.elasticsearch.common.jackson.JsonParseException: Numeric value (1.7976931348623157E308) out of range of long (-9223372036854775808 - 9223372036854775807)

at [Source: [B@1e01f19; line: 1, column: 12008]

at org.elasticsearch.common.jackson.JsonParser._constructError(JsonParser.java:1432)

at org.elasticsearch.common.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)

at org.elasticsearch.common.jackson.impl.JsonParserBase.reportOverflowLong(JsonParserBase.java:979)

at org.elasticsearch.common.jackson.impl.JsonParserBase.convertNumberToLong(JsonParserBase.java:862)

at org.elasticsearch.common.jackson.impl.JsonParserBase.getLongValue(JsonParserBase.java:635)

at org.elasticsearch.common.xcontent.json.JsonXContentParser.doLongValue(JsonXContentParser.java:106)

at org.elasticsearch.common.xcontent.support.AbstractXContentParser.longValue(AbstractXContentParser.java:70)

at org.elasticsearch.index.mapper.core.LongFieldMapper.parseCreateField(LongFieldMapper.java:231)

at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:296)

... 22 more

Can anyone help to solve this error?

Thanks in advance!

Hi!

Thanks for the answer.. yes, I think that is the problem too.
I'm trying now to map the field to a double, and see if i solves the
problem!

Thnks!

On Fri, May 25, 2012 at 7:21 PM, Rafał Kuć r.kuc@solr.pl wrote:

Hello!

It seems that the value you are trying to index

  • 1.7976931348623157E308 into long field type is too large for that type
    and that's why Elasticsearch throws that exception.

*--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
Elasticsearch

Hi all,

I'm having an error when trying to index a JSON document into
elasticsearch.

Below follows the error:
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse
[value]
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:309)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:577)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:443)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:557)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:435)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:491)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:433)
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.prepareIndex(InternalIndexShard.java:304)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:181)
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$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.elasticsearch.common.jackson.JsonParseException: Numeric
value (1.7976931348623157E308) out of range of long (-9223372036854775808 -
9223372036854775807)
at [Source: [B@1e01f19; line: 1, column: 12008]
at
org.elasticsearch.common.jackson.JsonParser._constructError(JsonParser.java:1432)
at
org.elasticsearch.common.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.reportOverflowLong(JsonParserBase.java:979)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.convertNumberToLong(JsonParserBase.java:862)
at
org.elasticsearch.common.jackson.impl.JsonParserBase.getLongValue(JsonParserBase.java:635)
at
org.elasticsearch.common.xcontent.json.JsonXContentParser.doLongValue(JsonXContentParser.java:106)
at
org.elasticsearch.common.xcontent.support.AbstractXContentParser.longValue(AbstractXContentParser.java:70)
at
org.elasticsearch.index.mapper.core.LongFieldMapper.parseCreateField(LongFieldMapper.java:231)
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:296)
... 22 more

Can anyone help to solve this error?

Thanks in advance!

--
Vânia Santos