You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Massimo Schiavon (JIRA)" <ji...@apache.org> on 2010/12/07 12:44:09 UTC
[jira] Created: (SOLR-2270) NPE reported from
QueryComponent.mergeIds with field collapse
NPE reported from QueryComponent.mergeIds with field collapse
-------------------------------------------------------------
Key: SOLR-2270
URL: https://issues.apache.org/jira/browse/SOLR-2270
Project: Solr
Issue Type: Bug
Affects Versions: 4.0
Environment: 2 cores with a shard in the same solr instance configured in distributed mode using zookeeper integration.
Reporter: Massimo Schiavon
This is the request:
http://***:8983/solr/1/select/?q=apache&distrib=true&group=true&group.field=site
and the exception stacktrace:
java.lang.NullPointerException
at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:665)
at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:560)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:326)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1359)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
this request works correctly:
http://***:8983/solr/1/select/?q=apache&distrib=true&group=true&group.field=site&group.main=true
I give a look at the code of QueryComponent.mergeIds(ResponseBuilder, ShardRequest)
[...]
SolrDocumentList docs = (SolrDocumentList)srsp.getSolrResponse().getResponse().get("response");
[...]
response for queries with field collapse are in a completely different format
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org