HotspotReviewStatus.REVIEWED enum value missing

  • Operating system: Windows 11
  • IDE name and version: 2025-03 (4.35.0)
  • SonarQube for Eclipse plugin version: 11.3.0.82692
  • Programming language you’re coding in: Mostly Java
  • Is connected mode used:
    • SonarQube Server v2025.1.1 (104738)

Description of the problem / question:
We are getting regular error notifications from the Eclipse plugin of sonarlint. The issue seems to be with an enum value that is not supported. This seems like a compatibility bug.
Stacktrace:

Cannot parse 'SecurityHotspotRaised' received event

java.lang.IllegalArgumentException: No enum constant org.sonarsource.sonarlint.core.commons.HotspotReviewStatus.REVIEWED
	at java.base/java.lang.Enum.valueOf(Enum.java:293)
	at org.sonarsource.sonarlint.core.commons.HotspotReviewStatus.valueOf(HotspotReviewStatus.java:30)
	at org.sonarsource.sonarlint.core.serverapi.push.parsing.SecurityHotspotRaisedEventParser.parse(SecurityHotspotRaisedEventParser.java:51)
	at org.sonarsource.sonarlint.core.serverapi.push.PushApi.parse(PushApi.java:85)
	at org.sonarsource.sonarlint.core.serverapi.push.PushApi.handleRawEvent(PushApi.java:75)
	at org.sonarsource.sonarlint.core.serverapi.push.PushApi.lambda$subscribe$0(PushApi.java:62)
	at org.sonarsource.sonarlint.core.serverapi.stream.EventStream.lambda$connect$0(EventStream.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at org.sonarsource.sonarlint.core.serverapi.stream.EventStream.lambda$connect$1(EventStream.java:93)
	at org.sonarsource.sonarlint.core.http.ApacheHttpClientAdapter$1.data(ApacheHttpClientAdapter.java:141)
	at org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer.doDecode(AbstractCharDataConsumer.java:111)
	at org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer.consume(AbstractCharDataConsumer.java:162)
	at org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec$1.consume(HttpAsyncMainClientExec.java:276)
	at org.apache.hc.core5.http.impl.nio.ClientHttp1StreamHandler.consumeData(ClientHttp1StreamHandler.java:261)
	at org.apache.hc.core5.http.impl.nio.ClientHttp1StreamDuplexer.consumeData(ClientHttp1StreamDuplexer.java:354)
	at org.apache.hc.core5.http.impl.nio.AbstractHttp1StreamDuplexer.onInput(AbstractHttp1StreamDuplexer.java:328)
	at org.apache.hc.core5.http.impl.nio.AbstractHttp1IOEventHandler.inputReady(AbstractHttp1IOEventHandler.java:64)
	at org.apache.hc.core5.http.impl.nio.ClientHttp1IOEventHandler.inputReady(ClientHttp1IOEventHandler.java:41)
	at org.apache.hc.core5.reactor.ssl.SSLIOSession.decryptData(SSLIOSession.java:617)
	at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$200(SSLIOSession.java:74)
	at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:202)
	at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:143)
	at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51)
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:176)
	at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:125)
	at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:92)
	at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
	at java.base/java.lang.Thread.run(Thread.java:1583)
1 Like

Hey @Jean-David_Maillefer,

thanks for raising that issue with us. When does the issue occur? When you open a Security Hotspot in the IDE or at random?
We will have a look internally, any info from you will help and is appreciated!

Best,
Tobias

The issue does not seem to be raised when performing change in the IDE, since it occurs when doing some other tasks (like answering a phone call). I think that this could be because we recently migrated our sonarqube server to version 2025.1.1 and the enum REVIEWED is not supported in the SonarLint. Probably an API mismatch between the versions of the tools.

1 Like

Hello!

Indeed, there is a bug where we did not expect SecurityHotspotRaised event to have REVIEWED status :sweat_smile:

We were able to reproduce this issue by analyzing a branch on SonarQube Server, while the main branch had some REVIEWED hotspots.

What we will do is:

  • Tackle this ticket on the SonarQube for IDE side so that the noisy exceptions are not thrown starting from the next version of SonarQube for IDE: Eclipse already
  • Make changes in SonarQube Server (will be part of the next SonarQube Server version, and will take longer) to fix the bug for good (this other ticket)

Thanks a lot for taking the time to report this!! :woman_bowing:

All the best,
Sophio

2 Likes

Hello! I’ve got the same issue with SonarQube Cloud (so not just SonarQube Server affected). Hope it will be fixed for that platform as well @sophio.japharidze
Thanks.

Hello @lrozenblyum, you are right!!

The ticket is HERE, and I have the PR open already. The fix should be available next week.

All the best,
Sophio

1 Like

Hi @lrozenblyum,

We just released 11.4.0.8275.
This issue should be resolved now!

Best,
Tobias

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.