[ https://issues.apache.org/jira/browse/SOLR-2270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15539597#comment-15539597 ]
Alexandre Rafalovitch commented on SOLR-2270: --------------------------------------------- Can this reproduced against latest Solr, preferably with the stock example? > 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-ALPHA > 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 was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org