lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tom liu (JIRA)" <>
Subject [jira] Created: (SOLR-2147) NPE throws in ShardDoc's ShardFieldSortedHitQueue when Distributed Searching
Date Sat, 09 Oct 2010 10:01:42 GMT
NPE throws in ShardDoc's ShardFieldSortedHitQueue when Distributed Searching

                 Key: SOLR-2147
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.0
         Environment: JDK1.6/Tomcat6
            Reporter: tom liu

when distributed searching use katta components(solr-1395), throws NPE:
Oct 9, 2010 5:43:59 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.apache.solr.handler.component.ShardFieldSortedHitQueue$
        at org.apache.solr.handler.component.ShardFieldSortedHitQueue.lessThan(
        at org.apache.lucene.util.PriorityQueue.upHeap(
        at org.apache.lucene.util.PriorityQueue.add(
        at org.apache.lucene.util.PriorityQueue.insertWithOverflow(
        at org.apache.solr.handler.component.QueryComponent.mergeIds(
        at org.apache.solr.handler.component.QueryComponent.handleResponses(
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
        at org.apache.solr.katta.SolrKattaServer.request(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.ipc.RPC$
        at org.apache.hadoop.ipc.Server$Handler$
        at org.apache.hadoop.ipc.Server$Handler$
        at Method)
        at org.apache.hadoop.ipc.Server$

i found that 210 was :
        final float f1 = e1.score;
        final float f2 = e2.score;
score field is Float type, it may be null. so should be changed as:
        final float f1 = e1.score==null?0.00f:e1.score;
        final float f2 = e2.score==null?0.00f:e2.score;

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message