Environment:
- Java: JetBrains s.r.o. 21.0.5
- OS: Windows 11 amd64
- IDE: IntelliJ IDEA 2024.3
- SonarLint: 7.4.0.60471
java.lang.Throwable: o.sl.ij.issue.hotspot.SecurityHotspotShowRequestHandler <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:1586)
at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1555)
at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:751)
at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:695)
at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
at o.sl.ij.issue.hotspot.SecurityHotspotShowRequestHandler.<clinit>(SecurityHotspotShowRequestHandler.kt:115)
at o.sl.ij.server.RequestProcessor.<init>(RequestProcessor.kt:45)
at o.sl.ij.server.RequestHandler.<init>(SonarLintHttpServer.kt:170)
at o.sl.ij.server.NettyServer.initialize(SonarLintHttpServer.kt:124)
at o.sl.ij.server.SonarLintHttpServer.startOnce(SonarLintHttpServer.kt:67)
at o.sl.ij.InitializeSonarLintOnStartup.appFrameCreated(InitializeSonarLintOnStartup.kt:30)
at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:768)
at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:712)
at c.ij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:451)