java.lang.ArrayIndexOutOfBoundsException: 0

Atlassian JIRA | Piotr Swiecicki [Atlassian] | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Just caught it on fisheye.dev when search was performed just when the instance was started. My guess was that no repositories were started yet and MultiSearcher was initialised with empty Searchables array in MultiIndexRepositorySearcher#getSearcher Just reproduced this locally by clearing the leakedSearchersBuilder in #getSearcher method on the breakpoint. Exception from fisheye.dev: {code} [2014-12-18 13:53:54,210] ERROR fisheye Error while executing the search with 'HC-7901' java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:280) at org.apache.lucene.search.MultiSearcher.createWeight(MultiSearcher.java:307) at org.apache.lucene.search.Searcher.search(Searcher.java:88) at com.atlassian.fecru.search.common.lucene.FishEyeQuickSearcher.search(FishEyeQuickSearcher.java:110) at com.atlassian.fecru.search.common.api.QuickSearchServiceImpl.search(QuickSearchServiceImpl.java:43) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.searchForCountsOnly(QuickSearchAction.java:264) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.execute(QuickSearchAction.java:205) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) ... {code}

    Atlassian JIRA | 2 years ago | Piotr Swiecicki [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: 0
  2. 0

    Just caught it on fisheye.dev when search was performed just when the instance was started. My guess was that no repositories were started yet and MultiSearcher was initialised with empty Searchables array in MultiIndexRepositorySearcher#getSearcher Just reproduced this locally by clearing the leakedSearchersBuilder in #getSearcher method on the breakpoint. Exception from fisheye.dev: {code} [2014-12-18 13:53:54,210] ERROR fisheye Error while executing the search with 'HC-7901' java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:280) at org.apache.lucene.search.MultiSearcher.createWeight(MultiSearcher.java:307) at org.apache.lucene.search.Searcher.search(Searcher.java:88) at com.atlassian.fecru.search.common.lucene.FishEyeQuickSearcher.search(FishEyeQuickSearcher.java:110) at com.atlassian.fecru.search.common.api.QuickSearchServiceImpl.search(QuickSearchServiceImpl.java:43) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.searchForCountsOnly(QuickSearchAction.java:264) at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.execute(QuickSearchAction.java:205) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) ... {code}

    Atlassian JIRA | 2 years ago | Piotr Swiecicki [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Lucene - Java Users - index corruption with latest lucene

    nabble.com | 2 years ago
    java.lang.ArrayIndexOutOfBoundsException: 132704 at > org.apache.lucene.search.BooleanScorer2$Coordinator.coordFactor(BooleanScorer2.java:55)

    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

      0

      at org.apache.lucene.search.MultiSearcher.rewrite()
    2. Lucene
      Searcher.search
      1. org.apache.lucene.search.MultiSearcher.rewrite(MultiSearcher.java:280)
      2. org.apache.lucene.search.MultiSearcher.createWeight(MultiSearcher.java:307)
      3. org.apache.lucene.search.Searcher.search(Searcher.java:88)
      3 frames
    3. com.atlassian.fecru
      QuickSearchServiceImpl.search
      1. com.atlassian.fecru.search.common.lucene.FishEyeQuickSearcher.search(FishEyeQuickSearcher.java:110)
      2. com.atlassian.fecru.search.common.api.QuickSearchServiceImpl.search(QuickSearchServiceImpl.java:43)
      2 frames
    4. com.atlassian.fisheye
      QuickSearchAction.execute
      1. com.atlassian.fisheye.quicksearch.action.QuickSearchAction.searchForCountsOnly(QuickSearchAction.java:264)
      2. com.atlassian.fisheye.quicksearch.action.QuickSearchAction.execute(QuickSearchAction.java:205)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    6. XWork Tiger Extensions
      DefaultActionInvocation.invokeAction
      1. com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
      1 frame