Received: An internal error occurred during "Update issues markers for project ..."

Environment: macOS Sequoia 15.4.1, Eclipse 2025.03, Sonarlint 11.6.0.82831

While saving a large Java class, I always receive:

An internal error occurred during: “Update issues markers for project…” (see attachment)

Other Java projects do not encounter this error.

What did I wrong?

Thanks
Andy

Hi Andy,

Could you provide the logs from this, please?

 
Thx,
Ann

Hello Ann

Thanks for your reply. Attached you find the requested log.

Thanks
Andy

Log.txt (63.8 KB)

Hi,

Thanks for the log! I’ve flagged this for the team.

 
Ann

Hello @AndyBrunner.

Thank you for your report.
I see our java analyzer throws an exception, but unfortunately I was unable to reproduce it. I’ve created a large java file >20k lines and opened it in Eclipse with latest SonarQube for IDE installed. But the problem didn’t occurred. So looks like it doesn’t happen in any large java file. Something else should be there.
Your logs were big help already, so we can start investigating. Thanks a lot.
But if you could provide a reproducer file, or reproducer project - it would help a lot more.

Best,

Hello Kirill

Thank you for your reply. As I am not able to share the entire code with you, I did some further investigation.

After I deleted all Sonarlint specific files in .metadata/.plugins and in ./settings/ directory and restarted Eclipse, the error is gone and everything works fine again.

All good now :slight_smile:

Regards
Andy

4 Likes

I had the same problem and removing the the .sonarlint folder in my workspace seems to have circumvented the problem. In any case I willl attach the stack trace:

java.lang.IllegalStateException: Duplicate key e4fed095-80a7-479c-b95c-e4ff332932e5 (attempted merging values Marker [on: /MyFile.java, id: 3748488, type: org.sonarlint.eclipse.core.sonarlintOnTheFlyProblem, attributes: [anticipatedIssue: false, charEnd: 2006, charStart: 1985, creationdate: 1713428767000, extralocations: org.sonarlint.eclipse.core.internal.markers.MarkerFlows@1f61a7c5, lineNumber: 42, message: Provide the parametrized type for this generic., priority: 2, quickfixes: org.sonarlint.eclipse.core.internal.quickfixes.MarkerQuickFixes@2955ac88, resolved: false, rulekey: java:S3740, severity: 0, sonarattribute: COMPLETE, sonarhighestimpact: MEDIUM, trackedIssueId: e4fed095-80a7-479c-b95c-e4ff332932e5], created: 09.05.25, 10:45] and Marker [on: /MyFile.java, id: 3748489, type: org.sonarlint.eclipse.core.sonarlintOnTheFlyProblem, attributes: [anticipatedIssue: false, charEnd: 3383, charStart: 3362, creationdate: 1713428767000, extralocations: org.sonarlint.eclipse.core.internal.markers.MarkerFlows@374b35d9, lineNumber: 95, message: Provide the parametrized type for this generic., priority: 2, quickfixes: org.sonarlint.eclipse.core.internal.quickfixes.MarkerQuickFixes@6934f31d, resolved: false, rulekey: java:S3740, severity: 0, sonarattribute: COMPLETE, sonarhighestimpact: MEDIUM, trackedIssueId: e4fed095-80a7-479c-b95c-e4ff332932e5], created: 09.05.25, 10:45])
	at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135)
	at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182)
	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at org.sonarlint.eclipse.core.internal.jobs.SonarLintMarkerUpdater.createOrUpdateMarkers(SonarLintMarkerUpdater.java:131)
	at org.sonarlint.eclipse.core.internal.jobs.IssuesMarkerUpdateJob.lambda$0(IssuesMarkerUpdateJob.java:67)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2457)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2477)
	at org.sonarlint.eclipse.core.internal.jobs.IssuesMarkerUpdateJob.doRun(IssuesMarkerUpdateJob.java:63)
	at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
2 Likes