Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13209

NullPointerException from call in org.apache.solr.search.SolrIndexSearcher.getDocSet

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: master (9.0)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Description

      Requesting the following URL causes Solr to return an HTTP 500 error response:

      http://localhost:8983/solr/films/select?group=true&group.query
      

      The error response seems to be caused by the following uncaught exception:

       java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
      	at org.apache.solr.util.ConcurrentLRUCache.get(ConcurrentLRUCache.java:124)
      	at org.apache.solr.search.FastLRUCache.get(FastLRUCache.java:163)
      	at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:792)
      	at org.apache.solr.search.Grouping$CommandQuery.createFirstPassCollector(Grouping.java:860)
      	at org.apache.solr.search.Grouping.execute(Grouping.java:327)
      	at org.apache.solr.handler.component.QueryComponent.doProcessGroupedSearch(QueryComponent.java:1408)
      	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:365)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559)
      [...]
      

      Method org.apache.solr.search.SolrIndexSearcher.getDocSet(), at line 792 calls filterCache.get(absQ) where absQ is a null pointer. I think this null pointer comes in fact from the caller, but I don't fully follow the logic of the code.

      To set up an environment to reproduce this bug, follow the description in the ‘Environment’ field.

      We automatically found this issue and ~70 more like this using Diffblue Microservices Testing. Find more information on this fuzz testing campaign.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cesar.rodriguez Cesar Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m