Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.2 EAP
  • SonarLint: 10.7.0.78874

Occured directly after the start of the IDE. No action on my site.

java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Got this just after upgrading to latest EAP and also upgrading to latest SonarLint plugin at the same time.

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Thank you for your reports on this.

Is it a blocking error for you or simply an error message with no impact?

This is related to a recent change on JetBrains’ side, which was deployed on 2024.2 EAP. I created this ticket on our side, and we will try to fix it for our next release at the end of the month.

Currently the plugin seems to work. From the wording it sounds that it will stop working, but it’s unclear for me when (end of EAP, next minor/major Version). So I guess its best to fix it sooner than later :wink:

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.2 EAP
  • SonarLint: 10.7.0.78874
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1577)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1546)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:57)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)