java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)

Atlassian JIRA | Lukasz Pater | 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

    h3. Summary When the application is starting up, the Spring context starts, but the review indexer is started afterwards. (see Run#mainImpl()). Requests that use the indexer will return with a 'Indexer is stopped' error before that happens (which should usually be a few seconds at most). h3. Expected Results The indexer starts as a part of the Spring context startup, and no errors are logged h3. Actual Results The below exception is thrown in the {{atlassian-fisheye-YYYY-MM-DD.log}} file: {noformat} 2016-02-26 12:03:20,000 ERROR [qtp458872080-139 ] fisheye TotalityFilter-logExceptionDetails - Exception "Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)" (java.lang.IllegalStateException) while processing "/rest/remote-link-aggregation/latest/aggregation" (Referer:"null") java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.checkStatus(DefaultReviewItemIndexer.java:374) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.withIndexSearcher(DefaultReviewItemIndexer.java:745) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} The stacktrace above appears after the +Spring context start+: {noformat} 2016-02-26 12:03:10,000 INFO [main ] org.eclipse.jetty.server.Server Server-doStart - jetty-8.1.10.v20130312 2016-02-26 12:03:10,001 INFO [main ] / ContextHandler$Context-log - Initializing Spring root WebApplicationContext {noformat} And the +Review indexer start+: {noformat} 2016-02-26 12:03:20,000 INFO [main ] fisheye Run-mainImpl - Server started on :8060 (http) (control port on 127.0.0.1:8059) 2016-02-26 12:03:20,001 INFO [qtp458872080-137 ] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-14 04/30/2014 06:01 PM' 2016-02-26 12:03:20,002 INFO [qtp458872080-137 ] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-14 04/30/2014 06:01 PM {noformat} h3. Notes The error can be safely ignored. It only occurs if a request using the indexer is triggered, so it may not be available after every start of the application.

    Atlassian JIRA | 2 years ago | Lukasz Pater
    java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)
  2. 0

    h3. Summary When the application is starting up, the Spring context starts, but the review indexer is started afterwards. (see Run#mainImpl()). Requests that use the indexer will return with a 'Indexer is stopped' error before that happens (which should usually be a few seconds at most). h3. Expected Results The indexer starts as a part of the Spring context startup, and no errors are logged h3. Actual Results The below exception is thrown in the {{atlassian-fisheye-YYYY-MM-DD.log}} file: {noformat} 2016-02-26 12:03:20,000 ERROR [qtp458872080-139 ] fisheye TotalityFilter-logExceptionDetails - Exception "Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)" (java.lang.IllegalStateException) while processing "/rest/remote-link-aggregation/latest/aggregation" (Referer:"null") java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.checkStatus(DefaultReviewItemIndexer.java:374) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.withIndexSearcher(DefaultReviewItemIndexer.java:745) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} The stacktrace above appears after the +Spring context start+: {noformat} 2016-02-26 12:03:10,000 INFO [main ] org.eclipse.jetty.server.Server Server-doStart - jetty-8.1.10.v20130312 2016-02-26 12:03:10,001 INFO [main ] / ContextHandler$Context-log - Initializing Spring root WebApplicationContext {noformat} And the +Review indexer start+: {noformat} 2016-02-26 12:03:20,000 INFO [main ] fisheye Run-mainImpl - Server started on :8060 (http) (control port on 127.0.0.1:8059) 2016-02-26 12:03:20,001 INFO [qtp458872080-137 ] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-14 04/30/2014 06:01 PM' 2016-02-26 12:03:20,002 INFO [qtp458872080-137 ] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-14 04/30/2014 06:01 PM {noformat} h3. Notes The error can be safely ignored. It only occurs if a request using the indexer is triggered, so it may not be available after every start of the application.

    Atlassian JIRA | 2 years ago | Lukasz Pater
    java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)

      at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.checkStatus()
    2. com.atlassian.crucible
      DefaultReviewItemIndexer.withIndexSearcher
      1. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.checkStatus(DefaultReviewItemIndexer.java:374)
      2. com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.withIndexSearcher(DefaultReviewItemIndexer.java:745)
      2 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame