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

Atlassian JIRA | Lukasz Pater | 1 year ago
  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 | 1 year 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 | 1 year ago | Lukasz Pater
    java.lang.IllegalStateException: Indexer is stopped (com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer@56a5e7fb)
  3. 0

    IllegalStateException in ChangeRecorder.endRecording (149)

    Eclipse Bugzilla | 1 year ago | error-reports-inbox
    java.lang.IllegalStateException: Recorder is already stopped
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't create new JUnit tests - NPE

    GitHub | 4 years ago | gravelld
    java.lang.IllegalStateException: Bundle Indexer service is not available.
  6. 0

    I did a clean start of dm Server and shutdown server by hitting ctlr+c or running shutdown script. The following stack trace is found in the serviceability/logs/dm-sever/log.log file. [2009-12-01 10:45:12.425] System Bundle Shutdown com.springsource.osgi.medic.eventlog.default KE0004I Shutdown initiated. [2009-12-01 10:45:12.590] region-dm-10 o.s.o.e.i.d.startup.DependencyWaiterApplicationContextExecutor Could not succesfully close context OsgiBundleXmlApplicationContext(bundle=com.springsource.server.admin.content, config=osgibundle:/META-INF/spring/*.xml): startup date [Tue Dec 01 10:44:12 GMT 2009]; root of context hierarchy java.lang.IllegalStateException: The EventAdmin is stopped at org.apache.felix.eventadmin.impl.EventAdminImpl$1.createHandlerTasks(EventAdminImpl.java:128) at org.apache.felix.eventadmin.impl.EventAdminImpl.sendEvent(EventAdminImpl.java:101) at org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator.sendEvent(EventAdminSecurityDecorator.java:102) at com.springsource.kernel.agent.dm.internal.BlueprintEventPostingOsgiBundleApplicationContextListener.sendDestroyedEvent(BlueprintEventPostingOsgiBundleApplicationContextListener.java:238) at com.springsource.kernel.agent.dm.internal.BlueprintEventPostingOsgiBundleApplicationContextListener.onOsgiApplicationEvent(BlueprintEventPostingOsgiBundleApplicationContextListener.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy103.onOsgiApplicationEvent(Unknown Source) at org.springframework.osgi.extender.internal.activator.ListListenerAdapter.onOsgiApplicationEvent(ListListenerAdapter.java:52) at org.springframework.osgi.context.event.ApplicationListenerAdapter.onApplicationEvent(ApplicationListenerAdapter.java:45) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter.multicastEvent(OsgiBundleApplicationContextEventMulticasterAdapter.java:63) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.sendClosedEvent(AbstractDelegatedExecutionApplicationContext.java:615) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:374) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:522) at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60) at com.springsource.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:106) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 7 years ago | Radhika Madala (c)
    java.lang.IllegalStateException: The EventAdmin is stopped

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