java.lang.ArrayIndexOutOfBoundsException: 39

Apache's JIRA Issue Tracker | Peter Wolanin | 6 years ago
  1. 0

    I have been testing a switch to long and tdate instead of int and date fields in the schema.xml for our Drupal integration. This indexes fine, but search fails with a 500 error. {code} INFO: [d7] webapp=/solr path=/select params={spellcheck=true&facet=true&facet.mincount=1&indent=1&spellcheck.q=term&json.nl=map&wt=json&rows=10&version=1.2&fl=id,entity_id,entity,bundle,bundle_name,nid,title,comment_count,type,created,changed,score,path,url,uid,name&start=0&facet.sort=true&q=term&bf=recip(rord(created),4,19,19)^200.0} status=500 QTime=4 Dec 5, 2010 11:52:28 AM org.apache.solr.common.SolrException log SEVERE: java.lang.ArrayIndexOutOfBoundsException: 39 at org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(FieldCacheImpl.java:721) at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:224) at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:692) at org.apache.solr.search.function.ReverseOrdFieldSource.getValues(ReverseOrdFieldSource.java:61) at org.apache.solr.search.function.TopValueSource.getValues(TopValueSource.java:57) at org.apache.solr.search.function.ReciprocalFloatFunction.getValues(ReciprocalFloatFunction.java:61) at org.apache.solr.search.function.FunctionQuery$AllScorer.<init>(FunctionQuery.java:123) at org.apache.solr.search.function.FunctionQuery$FunctionWeight.scorer(FunctionQuery.java:93) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:250) at org.apache.lucene.search.Searcher.search(Searcher.java:171) at org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1101) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:880) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at com.acquia.search.HmacFilter.doFilter(HmacFilter.java:62) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) {code} The exception goes away if I remove the boost function param bf=recip(rord(created),4,19,19)^200.0 Omitting the recip() doesn't help, so just bf=rord(created)^200.0 still causes the exception. In this schema, {code} <field name="created" type="tdate" indexed="true" stored="true"/> {code} In the prior schema: {code} <field name="created" type="date" indexed="true" stored="true"/> {code} This seems somewhat related to: SOLR-324 which is marked as fixed.

    Apache's JIRA Issue Tracker | 6 years ago | Peter Wolanin
    java.lang.ArrayIndexOutOfBoundsException: 39
  2. 0

    I have been testing a switch to long and tdate instead of int and date fields in the schema.xml for our Drupal integration. This indexes fine, but search fails with a 500 error. {code} INFO: [d7] webapp=/solr path=/select params={spellcheck=true&facet=true&facet.mincount=1&indent=1&spellcheck.q=term&json.nl=map&wt=json&rows=10&version=1.2&fl=id,entity_id,entity,bundle,bundle_name,nid,title,comment_count,type,created,changed,score,path,url,uid,name&start=0&facet.sort=true&q=term&bf=recip(rord(created),4,19,19)^200.0} status=500 QTime=4 Dec 5, 2010 11:52:28 AM org.apache.solr.common.SolrException log SEVERE: java.lang.ArrayIndexOutOfBoundsException: 39 at org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(FieldCacheImpl.java:721) at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:224) at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:692) at org.apache.solr.search.function.ReverseOrdFieldSource.getValues(ReverseOrdFieldSource.java:61) at org.apache.solr.search.function.TopValueSource.getValues(TopValueSource.java:57) at org.apache.solr.search.function.ReciprocalFloatFunction.getValues(ReciprocalFloatFunction.java:61) at org.apache.solr.search.function.FunctionQuery$AllScorer.<init>(FunctionQuery.java:123) at org.apache.solr.search.function.FunctionQuery$FunctionWeight.scorer(FunctionQuery.java:93) at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:250) at org.apache.lucene.search.Searcher.search(Searcher.java:171) at org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1101) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:880) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at com.acquia.search.HmacFilter.doFilter(HmacFilter.java:62) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) {code} The exception goes away if I remove the boost function param bf=recip(rord(created),4,19,19)^200.0 Omitting the recip() doesn't help, so just bf=rord(created)^200.0 still causes the exception. In this schema, {code} <field name="created" type="tdate" indexed="true" stored="true"/> {code} In the prior schema: {code} <field name="created" type="date" indexed="true" stored="true"/> {code} This seems somewhat related to: SOLR-324 which is marked as fixed.

    Apache's JIRA Issue Tracker | 6 years ago | Peter Wolanin
    java.lang.ArrayIndexOutOfBoundsException: 39
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [Solved for now] [PI] T2 error (logging in and force logged off immediately)

    rune-server.org | 11 months ago
    java.lang.ArrayIndexOutOfBoundsException: 39
  5. 0

    DrJava / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.ArrayIndexOutOfBoundsException: 39

    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.ArrayIndexOutOfBoundsException

      39

      at org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue()
    2. Lucene
      FieldCacheImpl.getStringIndex
      1. org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(FieldCacheImpl.java:721)
      2. org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:224)
      3. org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:692)
      3 frames
    3. Apache Solr Core
      FunctionQuery$FunctionWeight.scorer
      1. org.apache.solr.search.function.ReverseOrdFieldSource.getValues(ReverseOrdFieldSource.java:61)
      2. org.apache.solr.search.function.TopValueSource.getValues(TopValueSource.java:57)
      3. org.apache.solr.search.function.ReciprocalFloatFunction.getValues(ReciprocalFloatFunction.java:61)
      4. org.apache.solr.search.function.FunctionQuery$AllScorer.<init>(FunctionQuery.java:123)
      5. org.apache.solr.search.function.FunctionQuery$FunctionWeight.scorer(FunctionQuery.java:93)
      5 frames
    4. Lucene
      Searcher.search
      1. org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297)
      2. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:250)
      3. org.apache.lucene.search.Searcher.search(Searcher.java:171)
      3 frames
    5. Apache Solr Core
      SolrDispatchFilter.doFilter
      1. org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1101)
      2. org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:880)
      3. org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341)
      4. org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182)
      5. org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
      6. org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
      7. org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
      8. org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
      9. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
      9 frames
    6. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      1 frame
    7. com.acquia.search
      HmacFilter.doFilter
      1. com.acquia.search.HmacFilter.doFilter(HmacFilter.java:62)
      1 frame
    8. Jetty Server
      SocketConnector$Connection.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      10. org.mortbay.jetty.Server.handle(Server.java:285)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
      16. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
      16 frames
    9. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      1 frame