Error during SonarScanner execution java.lang.StackOverflowError

I’m getting the following error while running the sonarqube analysis using SonarSource/sonarqube-scan-action

ERROR: Error during SonarScanner execution

Java.lang.StackOverflowError

at java.base/java.util.ArrayList.addAll(ArrayList.java:670)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)

Hey there.

As noted in the template post, what version of SonarQube are you using?

It would also be helpful to include a wider range of logs, to understand when in analysis you are getting this error and what else might be going on.

The more info you provide, the more helpful people can be. :slight_smile:

Hey Colin, we are using SonarQube Enterprise Edition Version 10.4.1 (build 88267) and As per our company security policy we can’t share full detailed log information as it has our project information. However I can share the following logs and I hope it helps:

14:17:38.155 DEBUG: file.sql’ generated metadata with charset ‘UTF-8’

Not enough content in File.sql’ to have CPD blocks, it will not be part of the duplication detection

14:17:38.157 DEBUG: File.sql’ generated metadata with charset ‘UTF-8’
DEBUG: file.sql’ generated metadata with charset ‘UTF-8’
INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: Final Memory: 40M/144M

ERROR: Error during SonarScanner execution

Java.lang.StackOverflowError

at java.base/java.util.ArrayList.addAll(ArrayList.java:670)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)

Without any further information, I can only recommend you upgrade to v10.7 (v10.4.1 is EOL) and see the issue persists.

Please look at the below logs

14:17:38.157 DEBUG: File.sql’ generated metadata with charset ‘UTF-8’
DEBUG: file.sql’ generated metadata with charset ‘UTF-8’
INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: Final Memory: 40M/144M

ERROR: Error during SonarScanner execution

Java.lang.StackOverflowError

at java.base/java.util.ArrayList.addAll(ArrayList.java:670)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)
B.D.A.D.B.C.C(Unknown Source)
B.D.A.D.B.C.D(Unknown Source)