We have a solr cloud installation and when I execute a query that returns an empty resultset because of the filter queries applied, a NullPointerException is thrown.
This is the error msg: Solr HTTP error: OK (500) {"error":{"trace":"java.lang.NullPointerException\n\tat org.apache.solr.handler.component.DateStatsValues.updateTypeSpecificStats(StatsValuesFactory.java:318)\n\tat org.apache.solr.handler.component.AbstractStatsValues.accumulate(StatsValuesFactory.java:97)\n\tat org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:115)\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:309)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)\n\tat org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1420)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:540)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1084)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:376)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1018)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:258)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:451)\n\tat org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:252)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:266)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:596)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:527)\n\tat java.lang.Thread.run(Thread.java:722)\n","code":500}} The filter that appears to be causing the problem is defined in schema.xml as <field name="nongrata" type="int" indexed="true" stored="true" /> It could be defined as a boolean (for now...), but surely that cannot be the problem? Can anybody point me in the direction of a solution? Thanks MK