Joe
(Joe)
August 23, 2022, 5:01pm
4
Please check if these other posts can resolve your issue. You are most likely encountering a problem with how you are defining Sonar analysis parameters of your multimodule project (as defined by the cleanAllWorkingDirs
method calls):
I’m getting this error when running mvn clean verify sonar:sonar:
Exception in thread "main" java.lang.StackOverflowError
at org.sonar.api.batch.fs.internal.DefaultInputComponent.equals(DefaultInputComponent.java:48)
at com.google.common.collect.SingletonImmutableBiMap.get(SingletonImmutableBiMap.java:56)
at com.google.common.collect.ImmutableListMultimap.get(ImmutableListMultimap.java:285)
at com.google.common.collect.ImmutableListMultimap.get(ImmutableListMultimap.java:55)
at org.sonar.s…
Hi,
I am trying to configure sonarcloud but I get a java.lang.StackOverflowError if I use a multi-module Java maven project.
Repository: github
CI: Github actions
Language Java
Error log in github action executed when doing a pull request:
Exception in thread "main" java.lang.StackOverflowError
at org.sonar.api.batch.fs.internal.DefaultInputComponent.hashCode(DefaultInputComponent.java:43)
at java.base/java.util.HashMap.hash(HashMap.java:339)
at java.base/java.util.HashMap.getOrDefault(Ha…
I am running a SonarScan on a maven project using the maven plugin (SonarQube 9.4.0.54424). I just added a module to the project (previously it was not a multi-module project). Now, when I run the scan, I get a StackOverflowException which seems to be due to a recursion problem.
Can you please help me figure out what could be causing the stack overflow error and how to get around it?
In the parent-pom, I have the following properties:
<sonar-maven-plugin.version>3.9.1.2184</sonar-ma…
Trying to setup my multi-module project (AWS Serveless generated by IntelliJ) to run.
This is running on a MacBook pro - Java8 and Maven 3.6.1
When running the following command in the project root, it works 100%
mvn sonar:sonar
-Dsonar.projectKey=pkey
-Dsonar.host.url=http://xyz.xyz.xyz.xyz:9000
-Dsonar.login=genrated-key
However, when I set these three properties in the pom.xml it fails with a StackOverflow exception in the following class:
org.sonar.scanner.scan.WorkDirectoriesInit…
1 Like