Indexing from two different source shows Exception


(vijuitech) #1

Hi,
When I tried to index the data from two different sources I got
an exception,

Here am sending 50 data from each source. But I am getting
indexing Totally 50 data, but the actual data must be 100

Here I got the exception,

Error during indexation
org.elasticsearch.ElasticSearchParseException: Failed to derive
xcontent from (offset=0, length=0): []
at
org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:
147)
at
org.elasticsearch.common.xcontent.XContentHelper.createParser(XContentHelper.java:
49)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
428)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
414)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:
302)
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:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Thanks and Regards,

George


(Shay Banon) #2

Do you have data that you index with the doc? It seems like the length of
the data indexed is 0...

On Tue, Mar 20, 2012 at 8:37 AM, George Viju vijuitech@gmail.com wrote:

Hi,
When I tried to index the data from two different sources I got
an exception,

Here am sending 50 data from each source. But I am getting
indexing Totally 50 data, but the actual data must be 100

Here I got the exception,

Error during indexation
org.elasticsearch.ElasticSearchParseException: Failed to derive
xcontent from (offset=0, length=0): []
at

org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:
147)
at

org.elasticsearch.common.xcontent.XContentHelper.createParser(XContentHelper.java:
49)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
428)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
414)
at

org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:
302)
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:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Thanks and Regards,

George


(vijuitech) #3

Thank You Shay.

cheers

George

On Mar 20, 3:53 pm, Shay Banon kim...@gmail.com wrote:

Do you have data that you index with the doc? It seems like the length of
the data indexed is 0...

On Tue, Mar 20, 2012 at 8:37 AM, George Viju vijuit...@gmail.com wrote:

Hi,
When I tried to index the data from two different sources I got
an exception,

Here am sending 50 data from each source. But I am getting
indexing Totally 50 data, but the actual data must be 100

Here I got the exception,

Error during indexation
org.elasticsearch.ElasticSearchParseException: Failed to derive
xcontent from (offset=0, length=0): []
at

org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory. java:
147)
at

org.elasticsearch.common.xcontent.XContentHelper.createParser(XContentHelpe r.java:
49)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
428)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:
414)
at

org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(Inter nalIndexShard.java:
302)
at

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

org.elasticsearch.action.support.replication.TransportShardReplicationOpera tionAction

$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperat ionAction.java:
487)
at

org.elasticsearch.action.support.replication.TransportShardReplicationOpera tionAction
$AsyncShardOperationAction
$1.run(TransportShardReplicationOperationAction.java:400)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Thanks and Regards,

George


(system) #4