[ https://issues.apache.org/jira/browse/SOLR-16585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700288#comment-17700288 ]
Jason Gerlowski edited comment on SOLR-16585 at 3/14/23 4:10 PM: ----------------------------------------------------------------- Awesome, thanks for the super fast fix! Backporting to branch_9_2 makes sense to me, though you might want to double-check with Houston as he's the RM. It seems low impact though, and is only gonna help him as he's trying to get the tests passing for the release. was (Author: gerlowskija): Backporting to branch_9_2 makes sense to me, though you might want to double-check with Houston as he's the RM. It seems low impact though, and is only gonna help him as he's trying to get the tests passing for the release. > All docs query with any nonzero positive start value throws NPE with > "this.docs is null" > ---------------------------------------------------------------------------------------- > > Key: SOLR-16585 > URL: https://issues.apache.org/jira/browse/SOLR-16585 > Project: Solr > Issue Type: Bug > Components: query > Affects Versions: 9.1 > Reporter: Shawn Heisey > Assignee: Michael Gibney > Priority: Major > Fix For: main (10.0), 9.2, 9.1.1 > > Time Spent: 5.5h > Remaining Estimate: 0h > > An all docs query that has a nonzero positive value in the start parameter > will throw an NPE. Below is a slightly redacted query sent by the admin UI > and the exception. This is from 9.2.0-SNAPSHOT installed as a service on > Ubuntu, a user reported the problem on solr-user with the 9.1.0 docker image. > {code:none} > http://server:port/solr/corename/select?indent=true&q.op=OR&q=*%3A*&rows=10&start=1&useParams={code} > {code:none} > java.lang.NullPointerException: Cannot invoke > "org.apache.solr.search.DocList.iterator()" because "this.docs" is null at > org.apache.solr.response.DocsStreamer.<init>(DocsStreamer.java:74) at > org.apache.solr.response.ResultContext.getProcessedDocuments(ResultContext.java:55) > at > org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:246) > at > org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:196) > at org.apache.solr.common.util.TextWriter.writeVal(TextWriter.java:47) at > org.apache.solr.response.XMLWriter.writeResponse(XMLWriter.java:117) at > org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.java:30) > at > org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:71) > at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:980) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:585) at > org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:251) > at > org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:219) > at > org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) > at > org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196) > at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) at > org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) > at > org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:228) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) > at > org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) > at > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) > at org.eclipse.jetty.server.Server.handle(Server.java:563) at > org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) at > org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) at > org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:457) at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:199) > at org.eclipse.jetty.http2.HTTP2Connection.produce(HTTP2Connection.java:208) > at > org.eclipse.jetty.http2.HTTP2Connection.onFillable(HTTP2Connection.java:155) > at > org.eclipse.jetty.http2.HTTP2Connection$FillableCallback.succeeded(HTTP2Connection.java:378) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at > org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) > at > org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:139) > at > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:933) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077) > at java.base/java.lang.Thread.run(Thread.java:833) {code} > Any other query seems to be fine, like {{{}field:value{}}}. > > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org