Unable to generate sonar-cnes-report

Hi all,

I have SonarQube 9.3 running on my local machine. Then I have added sonar-cnes-report-4.0.0.0.jar, a report generating plugin and started the SonarQube server which is running fine.

When I tried to generate a report, I got the following message.
se2

So, I checked the SonarQube logs and found these,

2022.02.09 21:33:11 INFO app[o.s.a.SchedulerImpl] Process[ce] is up
2022.02.09 21:33:11 INFO app[o.s.a.SchedulerImpl] SonarQube is up
Feb 09, 2022 9:34:03 PM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube URL: http://localhost:9000
Feb 09, 2022 9:34:04 PM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube online: true
Feb 09, 2022 9:34:04 PM fr.cnes.sonar.report.ReportCommandLine execute
INFO: Detected SonarQube version: 9.3.0
Feb 09, 2022 9:34:29 PM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube URL: http://localhost:9000
Feb 09, 2022 9:34:29 PM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube online: true

from sonar.xxxxx.log

And find these from web.log

34:04 ERROR web[AX7iHsI9sonElpvcAAAj][o.s.s.w.WebServiceEngine] Fail to process request http://192.168.1.15:9000/api/cnesreport/report?key=CarewareTrunk&branch=master&language=en_US&author=Administrator&token=d6836f56fae85010576fb5025687328bdadc13af&enableDocx=true&enableMd=true&enableXlsx=true&enableCsv=true&enableConf=true&generation=Generate
fr.cnes.sonar.report.exceptions.SonarQubeException: SonarQube instance is not supported by cnesreport.

web_log.txt (39.8 KB)

at fr.cnes.sonar.report.ReportCommandLine.execute(ReportCommandLine.java:140)
at fr.cnes.sonar.plugin.ws.ExportTask.handle(ExportTask.java:181)
at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:111)

I have downloaded the plugin from here - https://github.com/cnescatlab/sonar-cnes-report/releases

I hope you guys help me out of this issue. Thanks

Regards,
Khopi

Hi,

this is a community plugin not supported by Sonarsource.
The latest version 4.0.0 works only for the current Sonarqube 8.9.x LTS version.
you might try that =

Gilbert

Thank you @Rebse for your quick response. I’ll try it and let you know.

Regards,
Khopi

Hi,

That source code has lots of error so that I couldn’t build jar file. If some one can fix the errors and share the source code, that would be helpful and appreciated.

Khopi

Hi,

just tried with
downloading https://github.com/cnescatlab/sonar-cnes-report/archive/refs/tags/4.0.0.zip
extracting
mvn clean install

and build log has some Errors and Warnings, but

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Used Maven 3.6.3 runnning in Git Bash on Win10
Never felt good with Maven integration in Eclipse or other IDEs and always prefer commandline
for the build, so i’m the wrong one to ask how to fix it in Eclipse :laughing:

Unfortunately I’m still getting error. I used the same maven version.:man_shrugging:

If you don’t mind, can you share that jar file (SonarQube 9.3 version added) :wink:

Regards,
Khopi

Yes, get it here
sonar-cnes-report-4.0.0.jar
The link is valid for 7 hours

I’ve used 9.3.* as i’m not sure whether 9.*.* is supported.

/** List of SonarQube versions which are supported by cnesreport. */
private static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
        "8.9", "8.9.*", "9.3.*");

Just tested it on my private Sonarqube 9.3.0 Community and it works like charm :slight_smile:

1 Like

Thanks a lot man :clap::v:. It’s working perfectly. Btw, what is your Java version? It might help to figure out my build issue.

Khopi

1 Like

:partying_face:
I used

openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.