com.atlassian.util.concurrent.LazyReference$InitializationException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed

Atlassian JIRA | David Blasio [Atlassian] | 1 year 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 Starting a Live Plan triggers JRA-40244 h3. Environment * JIRA 6.3.7 * Agile 6.7.12 * Portfolio 1.12.2 h3. Steps to Reproduce # Install Portfolio # Create a sample scrum project # Create a live plan and connect to the sample scrum project # Click next through the remainder of the wizard # Trigger a background index h3. Expected Results - Indexing completes successfully h3. Actual Results The page returns a 500 error and the following error is thrown in {{atlassian-jira.log}} {noformat} 016-03-10 12:56:46,323 JiraTaskExectionThread-3 ERROR admin 776x1278x1 4zh4xi 127.0.0.1 /secure/admin/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All In Background FAILED. Indexer: DefaultIndexManager: paths: /deployments/6.3.7/jira-home/caches/indexes/comments, /deployments/6.3.7/jira-home/caches/indexes/issues, /deployments/6.3.7/jira-home/caches/indexes/changes] com.atlassian.util.concurrent.LazyReference$InitializationException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder.get(DefaultIndexEngine.java:367) at com.atlassian.jira.index.DefaultIndexEngine.getSearcher(DefaultIndexEngine.java:136) at com.atlassian.jira.index.DefaultManager.openSearcher(DefaultManager.java:51) at com.atlassian.jira.issue.index.DefaultIssueIndexer.openIssueSearcher(DefaultIssueIndexer.java:268) at com.atlassian.jira.index.IssueIndexHelper.withIssueSearcher(IssueIndexHelper.java:225) at com.atlassian.jira.index.IssueIndexHelper.safelyRemoveOrphans(IssueIndexHelper.java:170) at com.atlassian.jira.index.IssueIndexHelper.fixupConcurrentlyIndexedIssues(IssueIndexHelper.java:110) at com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:947) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:321) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAllIssuesInBackground(DefaultIndexManager.java:401) <+3> (NativeMethodAccessorImpl.java:62) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy12.reIndexAllIssuesInBackground(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAllIssuesInBackground(CompositeIndexLifecycleManager.java:103) at com.atlassian.jira.web.action.admin.index.ReIndexBackgroundIndexerCommand.doReindex(ReIndexBackgroundIndexerCommand.java:39) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:59) at com.atlassian.jira.web.action.admin.index.ReIndexBackgroundIndexerCommand.call(ReIndexBackgroundIndexerCommand.java:15) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:24) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:527) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:490) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:253) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:263) at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:420) at org.apache.lucene.index.DirectoryReader.reopen(DirectoryReader.java:392) at com.atlassian.jira.index.DefaultIndexEngine$SearcherFactoryImpl.get(DefaultIndexEngine.java:425) at com.atlassian.jira.index.DefaultIndexEngine$SearcherFactoryImpl.get(DefaultIndexEngine.java:405) at com.atlassian.jira.index.DefaultIndexEngine$SearcherReference.doCreate(DefaultIndexEngine.java:176) at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder$1.create(DefaultIndexEngine.java:342) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 30 more {noformat} This appears to happen due to https://jira.atlassian.com/browse/JRA-40244 h3.Workaround Upgrade JIRA to 6.3.8 or higher

    Atlassian JIRA | 1 year ago | David Blasio [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  2. 0

    h3. Summary Starting a Live Plan triggers JRA-40244 h3. Environment * JIRA 6.3.7 * Agile 6.7.12 * Portfolio 1.12.2 h3. Steps to Reproduce # Install Portfolio # Create a sample scrum project # Create a live plan and connect to the sample scrum project # Click next through the remainder of the wizard # Trigger a background index h3. Expected Results - Indexing completes successfully h3. Actual Results The page returns a 500 error and the following error is thrown in {{atlassian-jira.log}} {noformat} 016-03-10 12:56:46,323 JiraTaskExectionThread-3 ERROR admin 776x1278x1 4zh4xi 127.0.0.1 /secure/admin/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All In Background FAILED. Indexer: DefaultIndexManager: paths: /deployments/6.3.7/jira-home/caches/indexes/comments, /deployments/6.3.7/jira-home/caches/indexes/issues, /deployments/6.3.7/jira-home/caches/indexes/changes] com.atlassian.util.concurrent.LazyReference$InitializationException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder.get(DefaultIndexEngine.java:367) at com.atlassian.jira.index.DefaultIndexEngine.getSearcher(DefaultIndexEngine.java:136) at com.atlassian.jira.index.DefaultManager.openSearcher(DefaultManager.java:51) at com.atlassian.jira.issue.index.DefaultIssueIndexer.openIssueSearcher(DefaultIssueIndexer.java:268) at com.atlassian.jira.index.IssueIndexHelper.withIssueSearcher(IssueIndexHelper.java:225) at com.atlassian.jira.index.IssueIndexHelper.safelyRemoveOrphans(IssueIndexHelper.java:170) at com.atlassian.jira.index.IssueIndexHelper.fixupConcurrentlyIndexedIssues(IssueIndexHelper.java:110) at com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:947) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:321) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAllIssuesInBackground(DefaultIndexManager.java:401) <+3> (NativeMethodAccessorImpl.java:62) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy12.reIndexAllIssuesInBackground(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAllIssuesInBackground(CompositeIndexLifecycleManager.java:103) at com.atlassian.jira.web.action.admin.index.ReIndexBackgroundIndexerCommand.doReindex(ReIndexBackgroundIndexerCommand.java:39) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:59) at com.atlassian.jira.web.action.admin.index.ReIndexBackgroundIndexerCommand.call(ReIndexBackgroundIndexerCommand.java:15) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:24) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:527) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:490) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:253) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:263) at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:420) at org.apache.lucene.index.DirectoryReader.reopen(DirectoryReader.java:392) at com.atlassian.jira.index.DefaultIndexEngine$SearcherFactoryImpl.get(DefaultIndexEngine.java:425) at com.atlassian.jira.index.DefaultIndexEngine$SearcherFactoryImpl.get(DefaultIndexEngine.java:405) at com.atlassian.jira.index.DefaultIndexEngine$SearcherReference.doCreate(DefaultIndexEngine.java:176) at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder$1.create(DefaultIndexEngine.java:342) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 30 more {noformat} This appears to happen due to https://jira.atlassian.com/browse/JRA-40244 h3.Workaround Upgrade JIRA to 6.3.8 or higher

    Atlassian JIRA | 1 year ago | David Blasio [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  3. 0

    jira REST Plugin The ResourceConfig instance does not contain any root resource classes

    Stack Overflow | 4 years ago | bershadskiy
    com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 60#136318061

    GitHub | 2 years ago | magnlun
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Cannot create object because the plugin container is unavailable for bundle 'se.bjurr.prnfs.pull-request-notifier-for-stash'
  6. 0

    [JRA-29215] 'java.lang.IllegalStateException: Bundle is uninstalled' Errors in JIRA log files too verbose - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Bundle is uninstalled

    1 unregistered visitors
    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. com.atlassian.util.concurrent.LazyReference$InitializationException

      org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed

      at com.atlassian.util.concurrent.LazyReference.getInterruptibly()
    2. com.atlassian.util
      LazyReference.get
      1. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
      2. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      2 frames
    3. com.atlassian.jira
      DefaultIndexManager.reIndexAll
      1. com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder.get(DefaultIndexEngine.java:367)
      2. com.atlassian.jira.index.DefaultIndexEngine.getSearcher(DefaultIndexEngine.java:136)
      3. com.atlassian.jira.index.DefaultManager.openSearcher(DefaultManager.java:51)
      4. com.atlassian.jira.issue.index.DefaultIssueIndexer.openIssueSearcher(DefaultIssueIndexer.java:268)
      5. com.atlassian.jira.index.IssueIndexHelper.withIssueSearcher(IssueIndexHelper.java:225)
      6. com.atlassian.jira.index.IssueIndexHelper.safelyRemoveOrphans(IssueIndexHelper.java:170)
      7. com.atlassian.jira.index.IssueIndexHelper.fixupConcurrentlyIndexedIssues(IssueIndexHelper.java:110)
      8. com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:947)
      9. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:321)
      9 frames