-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failure with Sonar 5.0 #395
Comments
Version 0.9.2 is not tested and released for SQ 5. |
Sorry, I haven't checked the compatibility matrix |
yes, looks like SQ 5 isn't anymore loading the sslr-cxx-toolkit jar from the extensions/plugins subfolder. |
I am a newbie to sonar too and even I observed this error today. Is there any way forward to solving this issue? |
There is no workaround. Current V0.9.2 supports only SQ 4.5. With SQ 5 there are again API changes which are not supported currently. |
The reported compatibility is related to Deprecate metric comment_blank_lines (https://jira.codehaus.org/browse/SONAR-3768). |
PR which removes metric comment_blank_lines #423. |
Works fine, thank you @Bertk! |
First of all, a very useful plug-in. So I assume next release should be compatible with SQ5? when can we expect that to happen? Thanks. |
No decisions yet, however fix has been merged to master. You can build the On Thu, Feb 12, 2015, 05:04 Terry Leung [email protected] wrote:
|
I did some tests and unfortunately the analysis failed but I use some extensions of C++ community plug-in (reactor).
Maybe the deprecated API list shall be reviewed or better eliminate deprecated API from C++ community plug-in (http://javadocs.sonarsource.org/4.5.2/apidocs/deprecated-list.html). |
Built and deployed SNAPSHOT of master to our 5.0 sonar server and everything seems to be working fine. |
I use also sonar 5.0, and had a different error to the one reported here, but it was also solved after deploying current snapshot. |
Solved with #423 / V0.9.3 |
Hi Anyone used sonar-runner in Android studio , when I run command "gradle sonarRunner" through terminal it give error as below : My Build.gradle file as below: sonarRunner { If any one have any solution then please help me I am stuck here. My Android studio version- 1.3.2 |
hi, supose you should ask this in the sonar gougle groups, this is for c++ source |
Hello,
I'm having some trouble using sonar-cxx-0.9.2 with sonarqube 5.0. I get the following error running the cpp-sonar-runner inside the sonar-example-masters. The same was working with cxx plugin version 0.90 and sonar 3.7.
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: COMMENT_BLANK_LINES
The following is the result running sonar-runner with -e option
...
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 7.149s
Final Memory: 24M/673M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoSuchFieldError: COMMENT_BLANK_LINES
at org.sonar.plugins.cxx.squid.CxxSquidSensor.saveMeasures(CxxSquidSensor.java:136)
at org.sonar.plugins.cxx.squid.CxxSquidSensor.save(CxxSquidSensor.java:121)
at org.sonar.plugins.cxx.squid.CxxSquidSensor.analyse(CxxSquidSensor.java:99)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:79)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:70)
at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:122)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:222)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:235)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:230)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:223)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:65)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:52)
at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:128)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:171)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
... 9 more
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
The text was updated successfully, but these errors were encountered: