Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-5461

quicksearch/quicknav fails with java.lang.ArrayIndexOutOfBoundsException: 0 when no accessible repositories found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Low
    • N/A
    • 3.7.0
    • None

    Description

      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:

      [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)
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pswiecicki Piotr Swiecicki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: