lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smock <harish.agar...@gmail.com>
Subject NullPointerException thrown during updates to index
Date Wed, 02 Dec 2009 17:53:12 GMT

Hi,
I'm running a distributed solr index (3 nodes) and have noticed frequent
exceptions thrown during updates.  The exception (see below for full trace)
occurs in the mergeIds function of QueryComponents, in this code block:
      Map<Object,ShardDoc> resultIds = new HashMap<Object,ShardDoc>();
      for (int i=resultSize-1; i>=0; i--) {
        ShardDoc shardDoc = (ShardDoc)queue.pop();
        shardDoc.positionInResponse = i;
        // Need the toString() for correlation with other lists that must
        // be strings (like keys in highlighting, explain, etc)
        resultIds.put(shardDoc.id.toString(), shardDoc);
      }


specifically, in the line:
        shardDoc.positionInResponse = i;


I really have no idea why this would be happening or how to begin debugging
this error.  Any ideas would be greatly appreciated.

Thanks,
-Harish




The server encountered an internal error (null
java.lang.NullPointerException at
org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:459)
at
org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:298)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1301) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catali...ing this request.

-- 
View this message in context: http://old.nabble.com/NullPointerException-thrown-during-updates-to-index-tp26613309p26613309.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message