You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Generate a report" web form return an error 500; Comandline works fine
To reproduce
Go to CNES report
Select a project, branch, language, user, ...
Click on 'Generate'
See error "HTTP Status 500 – Internal Server Error"
Expected behavior
Download the reports
Screenshots & log
web.log
2022.10.19 14:58:41 ERROR web[][o.s.s.p.w.RootFilter] Processing of request /api/cnesreport/report?key=***&branch=develop&language=en_US&author=***&token=***&enableDocx=true&enableMd=true&enableXlsx=true&enableCsv=true&enableConf=true&generation=Generate failed
javax.servlet.ServletException: Could not initialize class fr.cnes.sonar.report.ReportCommandLine
...
Caused by: java.lang.NoClassDefFoundError: Could not initialize class fr.cnes.sonar.report.ReportCommandLine
Commande line is ok :
tmp
java -jar /opt/sonarqube/extensions/plugins/sonar-cnes-report-4.1.3.jar -p *** -l en_US-m -f -c -t *****
SonarQube URL: http://localhost:9000
SonarQube online: true
Detected SonarQube version: 9.6.1.59531
[WARNING] This SonarQube version is not supported by this cnesreport version.
[WARNING] For further information, please refer to the compatibility matrix on the project GitHub page.
Report generation: SUCCESS
User environment
OS: Debian 11.5
SonarQube : 9.6.1 (build 59531)
Project version: 4.1.3
Java : openjdk 11.0.16 2022-07-19
Nginx (reverse proxy with tls) : 1.18.0
The text was updated successfully, but these errors were encountered:
obriat
changed the title
Web generation fails (ould not initialize class fr.cnes.sonar.report.ReportCommandLine)
Web generation fails (could not initialize class fr.cnes.sonar.report.ReportCommandLine)
Oct 19, 2022
Finally, it doesn't work after upgrading to 9.7.1. I get again the error, even after disabling and re-enabling the plugin. It should be another action that fixes it...
I try to compile it locally: didn't work.
But the very first error message in the log complains about access denied: "java.io.FilePermission" "/opt/sonarqube-9.7.1.62043/.cnesreport/log" "write"
So I created it manually, and it works!
I don't know why the plugin could not create it by his own... (the sonar folder had the correct permissions)
Describe the bug
The "Generate a report" web form return an error 500; Comandline works fine
To reproduce
Expected behavior
Download the reports
Screenshots & log
web.log
Commande line is ok :
User environment
The text was updated successfully, but these errors were encountered: