- which versions are you using: SonarQube Server 10.7.0.96327/Enterprise - Java 17, Rhel 8, sonar-maven-plugin:5.0.0.4389
- how is SonarQube deployed: from zip file on Rhel8 VM
- what are you trying to achieve: Trying to complete a scan of a java project.
- what have you tried so far to achieve this. (Verify environment, clean build area, rerun).
Main issue
We do the build in gitlab, when the build done Sonarqube begins the scan.
So when the build is complete, we start the last stage, the sonarscan. it says:
[Info] Load branch configuration (done) time-5ms
[ERROR] Error during sonarScanner Engine Execution
org.springframework.beans.factory.UnsatisifiedDependencyException on the jdk.internal.loader.ClassLoaders$AppsClassLoader.
..... (excluding some lines, can be provided if requested)
at at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:149)
at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:66)
at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:52)
.....
Caused by org.springframework.beans.factory.beancreationexception. Error creating bean with name DefaultInputModuleHigherarchy defined in org.sonar.scanner.scan.InputModuleHierarchyProvieder: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiatiionException.
....
Caused by org.springframework.beans.BeansInstantiationException: Failed to instantiate [org.sonar.scanner.scanDefaultInputModuleHierarcyy]: Factory method 'provide' threw exceptiion; nexted exception is java.lang.StackoverflowError.
......
Caused by: Java.lang.stackoverlfowError:null
at java.base/sun.nio.fs.UnixNativeDispatcher.open(Unknown Source)
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(Unknown Source)
at java.base/java.nio.file.Files.newDirectoryStream(Unknown Source)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.list(WorkDirectoriesInitializer.java:96)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.deleteAllRecursivelyExceptLockFile(WorkDirectoriesInitializer.java:84)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.cleanWorkingDir(WorkDirectoriesInitializer.java:64)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.cleanAllWorkingDirs(WorkDirectoriesInitializer.java:59)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.cleanAllWorkingDirs(WorkDirectoriesInitializer.java:57)
at org.sonar.scanner.scan.WorkDirectoriesInitializer.cleanAllWorkingDirs(WorkDirectoriesInitializer.java:57)
. . .
. . . and all the remaining of the total 1,024 stack trace entries repeat this last line at WorkDirectoriesInitializer.java:57.
More info can be shared as needed. The scan project does not create any entries in sonarqube, it just blows up in the build and never gets there. Other builds from the pipeline works.
Any ideas would be helpful. Full Errors from error file attatched.
java-error-stack overflow.txt (123.7 KB)