Sonarqube analysis getting failed

Hello Team,
I am trying to generate Sonarqube Test Coverage report for Camunda(BPMN) test files,
While configuring Project in Sonarqube dashboard, after successful build getting error for project analysis.

image

Kindly suggest on this how to fix this error as build successful.

Could anyone kindly suggest on this, totally stuck due to this issue.?

Hi,

Welcome to the community!

Can you copy/paste the text of that error into a new post? I can’t read the screenshot, and for some reason the system won’t zoom on it for me.

 
Thx,
Ann

Hi @ganncamp
Kindly find below error, I am getting.

Error Details: camunda-engine [Project Analysis]
org.sonar.ce.task.projectanalysis.component.VisitException: Visit of Component {key=camunda-engine,uuid=4b2f4160-65cb-4978-83d8-67fd681fb135,type=PROJECT} failed
	at org.sonar.ce.task.projectanalysis.component.VisitException.rethrowOrWrap(VisitException.java:44)
	at org.sonar.ce.task.projectanalysis.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:41)
	at org.sonar.ce.task.projectanalysis.step.QualityGateMeasuresStep.execute(QualityGateMeasuresStep.java:103)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
`Caused by: java.lang.IllegalArgumentException: NaN is not allowed as a Measure value`
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
	at org.sonar.ce.task.projectanalysis.measure.Measure$NewMeasureBuilder.create(Measure.java:433)
	at org.sonar.ce.task.projectanalysis.measure.BatchMeasureToMeasure.toDoubleMeasure(BatchMeasureToMeasure.java:79)
	at org.sonar.ce.task.projectanalysis.measure.BatchMeasureToMeasure.toMeasure(BatchMeasureToMeasure.java:47)
	at org.sonar.ce.task.projectanalysis.measure.MeasureRepositoryImpl.loadBatchMeasuresForComponent(MeasureRepositoryImpl.java:116)
	at org.sonar.ce.task.projectanalysis.measure.MeasureRepositoryImpl.getRawMeasure(MeasureRepositoryImpl.java:84)
	at org.sonar.ce.task.projectanalysis.step.QualityGateMeasuresStep.updateMeasures(QualityGateMeasuresStep.java:170)
	at org.sonar.ce.task.projectanalysis.step.QualityGateMeasuresStep.executeForProject(QualityGateMeasuresStep.java:110)
	at org.sonar.ce.task.projectanalysis.step.QualityGateMeasuresStep$1.visitProject(QualityGateMeasuresStep.java:101)
	at org.sonar.ce.task.projectanalysis.component.DepthTraversalTypeAwareCrawler.visitNode(DepthTraversalTypeAwareCrawler.java:70)
	at org.sonar.ce.task.projectanalysis.component.DepthTraversalTypeAwareCrawler.visitImpl(DepthTraversalTypeAwareCrawler.java:51)
	at org.sonar.ce.task.projectanalysis.component.DepthTraversalTypeAwareCrawler.visit(DepthTraversalTypeAwareCrawler.java:39)

Thank You.

Hi,

Thanks for the stacktrace. What version of SonarQube are you on? Also, can you tell us a little bit about the project you were trying to analyze?

 
Thx,
Ann

Hi @ganncamp,
Thank you for your response.
I am using 10.6 version sonarQube in windows, for Camunda process engine application to analysis the Process test coverage of BPMN processes.
Hence using dependency as:

org.camunda.community.process_test_coverage
sonar-camunda-process-test-coverage-plugin
2.4.0

and plugin:

org.sonarsource.scanner.maven
sonar-maven-plugin
4.0.0.4121

And some test coverage related dependency for Camunda 7 with JUnit5. With that I am getting Build Successful and Test JSON reports as well for all Test classes
But while configuring local project in sonarQube for analysis getting error as posted screenshots before.
I could not move forward in sonar analysis due to this issue. Kindly suggest on this.

Thank You.

Hi,

To be clear, you’re using a 3rd-party plugin to analyze a language that’s not supported by SonarQube out of the box? If so, I’m afraid I have to refer you to that 3rd party.

 
Ann

Hi,
Plugin sonar-maven-plugin is suggested by SonarQube documentation only : SonarScanner for Maven (sonarsource.com)
using for Camunda’s bpmn files in spring boot application.

V

Hi V,

We don’t analyze Camunda’s bpmn files out of the box. To get analysis of those files, you must have added a 3rd-party plugin. So you’ll need to talk to that 3rd party.

 
HTH,
Ann

Hi @ganncamp,
Not getting exact cause of this sonarqube behaviour. As it was working fine properly previously but sudden its not working and unable configure project for analysis.

And I am getting error log in web.log as bellow:

Suppressed: java.net.ConnectException: Failed to connect to downloads.sonarsource.com/108.138.199.111:443
… 196 common frames omitted
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
… 195 common frames omitted
Suppressed: java.net.ConnectException: Failed to connect to downloads.sonarsource.com/108.138.199.55:443
… 196 common frames omitted
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
… 195 common frames omitted
Suppressed: java.net.ConnectException: Failed to connect to downloads.sonarsource.com/108.138.199.59:443
… 196 common frames omitted
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
… 195 common frames omitted
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
… 195 common frames omitted
2024.08.27 10:05:49 ERROR web[0689eb99-55f2-4c13-b2a5-10653ca988f1][o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://downloads.sonarsource.com/sonarqube/update/update-center.properties
at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:153)
at org.sonar.core.util.DefaultHttpDownloader.readString(DefaultHttpDownloader.java:99)
at org.sonar.api.utils.UriReader.readString(UriReader.java:69)
at org.sonar.server.plugins.UpdateCenterClient.init(UpdateCenterClient.java:113)
at org.sonar.server.plugins.UpdateCenterClient.getUpdateCenter(UpdateCenterClient.java:96)
at org.sonar.server.plugins.UpdateCenterMatrixFactory.getUpdateCenter(UpdateCenterMatrixFactory.java:44)
at org.sonar.server.platform.ws.UpgradesAction.writeResponse(UpgradesAction.java:121)
at org.sonar.server.platform.ws.UpgradesAction.handle(UpgradesAction.java:114)
at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:114)
at org.sonar.server.platform.web.WebServiceFilter.doFilter(WebServiceFilter.java:84)
at org.sonar.server.platform…

Also
From Third party as well will not get this solution for this as this one is getting in Sonarqube dashboard error.

Thank You,
V