lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "senthil nathan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-8755) java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on OS Grid coordinates
Date Mon, 08 Apr 2019 12:55:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-8755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812404#comment-16812404
] 

senthil nathan commented on LUCENE-8755:
----------------------------------------

Exception :

rg.apache.solr.common.SolrException: ERROR: [doc=AA60L123333-ENG] Error adding field 'location'='244502.06
639062.07' msg=Index: 0, Size: 0
 at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:177)
 at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
 at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:280)
 at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:214)
 at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:169)
 at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:68)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.AddSchemaFieldsUpdateProcessorFactory$AddSchemaFieldsUpdateProcessor.processAdd(AddSchemaFieldsUpdateProcessorFactory.java:335)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:117)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:117)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:117)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:117)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldNameMutatingUpdateProcessorFactory$1.processAdd(FieldNameMutatingUpdateProcessorFactory.java:74)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:117)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:939)
 at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1094)
 at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:720)
 at org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103)
 at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
 at org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory$DefaultValueUpdateProcessor.processAdd(AbstractDefaultValueUpdateProcessorFactory.java:93)
 at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.handleAdds(JsonLoader.java:494)
 at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate(JsonLoader.java:141)
 at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load(JsonLoader.java:117)
 at org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:80)
 at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97)
 at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:69)
 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)
 at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)
 at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
 at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
 at org.eclipse.jetty.server.Server.handle(Server.java:518)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
 at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 at java.util.ArrayList.rangeCheck(ArrayList.java:653)
 at java.util.ArrayList.get(ArrayList.java:429)
 at org.apache.lucene.spatial.prefix.tree.QuadPrefixTree.getCell(QuadPrefixTree.java:152)
 at org.apache.lucene.spatial.prefix.tree.LegacyPrefixTree.getTreeCellIterator(LegacyPrefixTree.java:70)
 at org.apache.lucene.spatial.prefix.tree.QuadPrefixTree.getTreeCellIterator(QuadPrefixTree.java:41)
 at org.apache.lucene.spatial.prefix.PrefixTreeStrategy.createCellIteratorToIndex(PrefixTreeStrategy.java:169)
 at org.apache.lucene.spatial.prefix.RecursivePrefixTreeStrategy.createCellIteratorToIndex(RecursivePrefixTreeStrategy.java:125)
 at org.apache.lucene.spatial.prefix.PrefixTreeStrategy.createIndexableFields(PrefixTreeStrategy.java:151)
 at org.apache.lucene.spatial.prefix.PrefixTreeStrategy.createIndexableFields(PrefixTreeStrategy.java:146)
 at org.apache.lucene.spatial.prefix.PrefixTreeStrategy.createIndexableFields(PrefixTreeStrategy.java:137)
 at org.apache.solr.schema.AbstractSpatialFieldType.createFields(AbstractSpatialFieldType.java:214)
 at org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:47)
 at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:122)
 ... 62 more

> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on OS Grid coordinates
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-8755
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8755
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>            Reporter: senthil nathan
>            Priority: Critical
>
> When trying to index a below document with apache solr 7.5.0 i am getting java.lang.IndexOutOfBoundsException,
this data is causing the whole full import to be failed. I have also defined my schema for
your reference 
>  
> Data:
> [
> { 
>  "street_description":"SAMPLE_TEXT",
>  "pao_start_number":6,
>  "x_coordinate":244502.06,
>  "sao_text":"FIRST FLOOR",
>  "logical_status":"1",
>  "street_record_type":1,
>  "id":"AA60L123333-ENG",
>  "street_description_str":"SAMPLE_TEXT",
>  "lpi_logical_status":"1",
>  "administrative_area":"SAMPLE_TEXT & HOVE",
>  "uprn":"8899889",
>  "town_name":"TEST TOWN",
>  "street_description_full":"60 DEMO ",
>  "y_coordinate":639062.07,
>  "postcode_locator":"AB1 1BB",
>  "location":"244502.06 639062.07"
> }
> ]
>  
> Configuration in managed-schema.xml
>  
> <fieldType name="oslocation" class="solr.SpatialRecursivePrefixTreeFieldType" geo="false"
maxDistErr="0.000009" worldBounds="ENVELOPE(0,700000,1300000,0)" distErrPct="0.15"/>
>  <field name="_root_" type="string" docValues="false" indexed="true" stored="false"/>
>  <field name="_text_" type="text_en" multiValued="true" indexed="true" stored="false"/>
>  <field name="_version_" type="long" indexed="true" stored="false"/>
>  <field name="administrative_area" type="string" multiValued="false" indexed="true"
stored="true"/>
>  <field name="auth_name" type="string" multiValued="false" indexed="false" stored="true"/>
>  <field name="id" type="string" multiValued="false" indexed="true" required="true"
stored="true"/>
>  <field name="locality_name" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="location" type="oslocation" multiValued="false" indexed="true" stored="true"/>
>  <field name="logical_status" type="string" multiValued="false" indexed="false" stored="true"/>
>  <field name="lpi_logical_status" type="string" multiValued="false" indexed="false"
stored="true"/>
>  <field name="organisation" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="organisation_name" type="text_en" multiValued="false" indexed="true"
stored="true"/>
>  <field name="pao_end_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_end_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_start_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_start_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_text" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="postcode_locator" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_end_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_end_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_start_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_start_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_text" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="street_description" type="text_en" multiValued="false" indexed="true"
stored="true"/>
>  <field name="street_description_str" type="text_gp_custom" multiValued="false" indexed="true"
stored="true"/>
>  <field name="street_description_full" type="text_gp_custom" multiValued="false" indexed="true"
stored="true"/> 
>  <field name="street_record_type" type="int" multiValued="false" indexed="false" stored="true"/>
>  <field name="town_name" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="uprn" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="x_coordinate" type="double" multiValued="false" indexed="true" stored="true"/>
>  <field name="y_coordinate" type="double" multiValued="false" indexed="true" stored="true"/>
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message