java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=20 (got docID=2144084671)

Stack Overflow | Mohsen | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Solr exception: docID must be >= 0 and < maxDoc=20

    Stack Overflow | 5 years ago | Mohsen
    java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=20 (got docID=2144084671)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      docID must be >= 0 and < maxDoc=20 (got docID=2144084671)

      at org.apache.lucene.index.SegmentReader.document()
    2. Lucene
      DirectoryReader.document
      1. org.apache.lucene.index.SegmentReader.document(SegmentReader.java:475)
      2. org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:583)
      2 frames
    3. Apache Solr Core
      SolrDispatchFilter.doFilter
      1. org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:260)
      2. org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:452)
      3. org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:271)
      4. org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:478)
      5. org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:385)
      6. org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
      7. org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
      8. org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
      9. org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
      10. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
      10 frames
    4. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      10 frames
    5. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      3 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:679)
      3 frames