- 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).
We have a guitlab build than when it completes, the last stage it kicks off the sonarqube scan.
The Sonarqube scan begins on line 13,074 of the build output. The scan runs saying it is processing files for a while, going through the various modules. It Indexes all of the files, Loads the metrics repository, It then list sensors it is using for hundreds of lines. Then it says on 17428 the following error:
[[ERROR] Unable to run check class org.sonar.java.se.SymbolExecutionVisitor - on file ‘[internal path]/client/map/worldwind/render/ThreatTubeVolume.java’, To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
*java.lang.IllegalStateException: null**
**at org.sonarsource.analyzer.commons.collections.SinglyLinkList$1.peek(SinglyLinkedList.java:177)**
**at org.sonar.java.se.ProgramState.peekValueSymbol(ProgramValueState.java:242)**
**at org.sonar.java.se.xproc.MethodYield.getReturnSymbolsAsTrackedSymbols(MethodYield.java:199)**
**at org.sonar.java.se.xproc.MethodYield.lambda$flow$5(MethodYield.java:192)**
**at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)**
**at org.sonar.java.se.xproc.MethodYield.flow(MethodYield.java:189)**
**at org.sonar.java.se.FlowComputation$ExecutionPath.lambda$flowFromYields$14(FlowComputation.java:753)**
**at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)**
**at java.base/java.util.Iterator.ForEachRemaining(Unknown Source)**
**at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)**
**at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)**
**at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)**
**at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)**
**at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)**
**at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)**
**at org.sonar.java.se.FlowComputation$ExecutionPath.flowFromYields(FlowComputation.java:761)**
**at org.sonar.java.se.FlowComputation$ExecutionPath.addEdge(FlowComputation.java:345)**](https://)
**at org.sonar.java.se.FlowComputation.lambda$run$7(FlowComputation.java:193)**
The remaining stack trace is an additional 74 lines, and it contains four more lambdas further down. Let us know if you need them
The file it is complaining about is from a common java library…
basic geometry stuff.
After the error this scan continues scanning the rest of the files. It gets to the message [INFO] 9335/9335 files have been analyzed. Then runs more security sensors.
It then shows the scan ended in failure.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:5.0.0.4389:sonar on project [internal] Analysis Failed.
So it scanned all of the files, had a problem with 1, then does not create the scan in sonarqube. Any ideas would help.
Java-error-Please Report.txt (13.9 KB)