SonarLint 10.4.1 - ContainerDisposedException: 'ProjectImpl@... services' was disposed

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.3
  • SonarLint: 10.4.1.77969
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1497479147 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:59)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:38)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:903)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Thank you for your report, @TasMot. We missed this case scenario, so I created this bug ticket on our side. It will be fixed for the next release.

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1020447789 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: WebStorm 2023.3.4
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@439235653 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: WebStorm 2023.3.4
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@878593599 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1167682437 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.1 EAP
  • SonarLint: 10.4.1.77998
c.ij.serviceContainer.AlreadyDisposedException: Container is already disposed
	at c.ij.serviceContainer.ComponentManagerImplKt.throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1622)
	at c.ij.serviceContainer.ComponentManagerImplKt.access$throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:724)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:698)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: PhpStorm 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1672466709 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1160052202 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: WebStorm 2023.3.5
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1140681393 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: IntelliJ IDEA 2024.1 RC
  • SonarLint: 10.4.1.77998
c.ij.serviceContainer.AlreadyDisposedException: Container is already disposed
	at c.ij.serviceContainer.ComponentManagerImplKt.throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1622)
	at c.ij.serviceContainer.ComponentManagerImplKt.access$throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:724)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:698)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1424071911 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Since I updated to the last version of SonarLint, I notice that when I start IDEA the SonarLint Background process takes very long - I didn’t measure it, but it felt like 10 - 15 minutes. When I switch the workspace, I get the exception you see above.

Is there any problem in the configuration?

Kind Regards
Thomas

1 Like

Hi @tschindler, the exception, and the corresponding error are not important; you can ignore them. We will fix this in the next release.

Regarding the long background process, this is another topic that we are also actively working on. In the next release, you should expect some improvements; it should not usually take more than a few seconds.

Thank you for using SonarLint! :sonarlint:

1 Like

Hi @nicolas.quinquenel,
thank you for the quick response!
Kind Regards
Thomas

1 Like

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@1521175464 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@870048719 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@2091437857 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.2
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@51328337 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:59)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:38)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@194464988 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

We just released SonarLint 10.4.2, which should fix this issue. Could you please update and see if it’s replicable?