StackOverflow during analysis

Sonar gradle task is failing after making some changes to my Java code. I’ve changed 46 files so its not really easy to track down what caused it to fail.

[stderr] Exception in thread "main" java.lang.StackOverflowError
[stderr] 	at java.base/java.util.HashMap.hash(Unknown Source)
[stderr] 	at java.base/java.util.HashMap.getNode(Unknown Source)
[stderr] 	at java.base/java.util.HashMap.get(Unknown Source)
[stderr] 	at com.sonarsource.A.A.W.A(na:885)
[stderr] 	at com.sonarsource.A.A.W.A(na:1627)
[stderr] 	at com.sonarsource.A.A.W.A(na:1627)
...

Gradle plugin version 6.0.1.5171

Not sure what the best way to gather more helpful information for you is. Is there a way to have sonar output which file its considering before it crashes to narrow it down?

Hey there.

Your title describes a false-positive, but your post describes an analysis crash. What is the issue you’re reporting?

Sorry, the analysis crash is what I’m posting about. Website must have saved the title of a draft I was working on

Thanks! Based on stacktrace, it matches a known issue:

This will be fixed in new LTA release of SonarQube Server. It’s coming so soon that the docs are already published (so are the docker images). Check back later today!

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