Error in SonarLint for IntelliJ java

Environment:

  • Java: JetBrains s.r.o. 17.0.8
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.2.2
  • SonarLint: 9.0.0.75308

*** exception class was changed or removed

  Exception thrown by subscriber method handleEvent(o.ss.sl.core.event.ConfigurationScopeRemovedEvent) on subscriber o.ss.sl.core.websocket.WebSocketService@4f646095 when dispatching event: o.ss.sl.core.event.ConfigurationScopeRemovedEvent@289afa1e
  
  java.lang.NullPointerException: Cannot invoke "o.ss.sl.core.websocket.SonarCloudWebSocket.unsubscribe(String)" because "this.sonarCloudWebSocket" is null
at o.ss.sl.core.websocket.WebSocketService.forget(WebSocketService.java:260)
at o.ss.sl.core.websocket.WebSocketService.handleEvent(WebSocketService.java:101)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:142)
at com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

Welcome :slight_smile:

Sonarlint for IntelliJ 9.0.0.75308 is outdated.
Try the latest version 10.1.1.77150 and see if it works for you, see

Gilbert

1 Like