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

Markus Jelsma commented on SOLR-3564:
-------------------------------------

It it in some cases also sent over the wire in response to a legitimate request:

{code}
{"response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]},"facet_counts":{"facet_queries":{},"facet_fields":{"type":{},"host":{},"cat":{}},"facet_dates":{},"facet_ranges":{}},"highlighting":{},"error":{"trace":"java.lang.NullPointerException\n\tat
 
org.apache.solr.handler.component.SpellCheckComponent.finishStage(SpellCheckComponent.java:297)\n\tat
 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:315)\n\tat
 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)\n\tat
 org.apache.solr.core.SolrCore.execute(SolrCore.java:1599)\n\tat 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:442)
{code}
                
> SpellcheckCollator NPE with timeAllowed set
> -------------------------------------------
>
>                 Key: SOLR-3564
>                 URL: https://issues.apache.org/jira/browse/SOLR-3564
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 4.0
>         Environment: 5.0-SNAPSHOT 1352525M - markus - 2012-06-21 15:23:39
>            Reporter: Markus Jelsma
>            Priority: Minor
>             Fix For: 4.0
>
>
> If the query running time is exceeded during collation checking the 
> SpellcheckCollator throws the following NPE:
> {code}
> 2012-06-21 14:34:12,875 WARN [solr.spelling.SpellCheckCollator] - 
> [http-8080-exec-28] - : Exception trying to re-query to check if a spell 
> check possi
> bility would return any hits.
> java.lang.NullPointerException
>         at 
> org.apache.solr.handler.component.ResponseBuilder.setResult(ResponseBuilder.java:399)
>         at 
> org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:412)
>         at 
> org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:112)
>         at 
> org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:203)
>         at 
> org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:180)
>         at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:204)
>         at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1561)
>         ....
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to