SonarOpenCommunity / sonar-cxx

SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools.
GNU Lesser General Public License v3.0
997 stars 365 forks source link

sonar-cxx 0.9.6 : compatibility issue with google collection ? #898

Closed ShogunWeb closed 8 years ago

ShogunWeb commented 8 years ago

Hi, I tested the official release of sonar-CXX 0.9.6, but got the same problem as mentioned in this closed issue (https://github.com/SonarOpenCommunity/sonar-cxx/issues/882).

I'm using SonarQube 5.6. The error occurs during an analysis using sonar-scanner 2.6.1.

It seems to be linked to CxxSquidSensor, as I don't have problems when I analyse a project in python.

Here is the end of the log (and sonar-scanner crashes after that):

INFO: 164 files indexed
INFO: Quality profile for c++: Sonar way
INFO: JaCoCoSensor: JaCoCo report not found : /code_repository/Waves/target/jacoco.exec
INFO: JaCoCoItSensor: JaCoCo IT report not found: /code_repository/Waves/target/jacoco-it.exec
DEBUG: Code colorizer, supported languages: pp,cs,c++,web,py,grvy
DEBUG: 'JavaScript Squid Sensor' skipped because there is no related file in current project
DEBUG: Sensors : Lines Sensor (wrapped) -> CxxSquidSensor -> CxxCoverageSensor -> CxxCppCheckSensor -> SCM Sensor (wrapped) -> Zero Coverage Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Block Indexer (wrapped)
INFO: Sensor Lines Sensor (wrapped)
INFO: Sensor Lines Sensor (wrapped) (done) | time=22ms
INFO: Sensor CxxSquidSensor
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
    at com.sonar.sslr.api.Token.<init>(Token.java:58)
    at com.sonar.sslr.api.Token.<init>(Token.java:36)
    at com.sonar.sslr.api.Token$Builder.build(Token.java:274)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.registerMacros(CxxPreprocessor.java:229)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:267)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:216)
    at org.sonar.cxx.parser.CxxParser.create(CxxParser.java:66)
    at org.sonar.cxx.CxxAstScanner.create(CxxAstScanner.java:90)
    at org.sonar.plugins.cxx.squid.CxxSquidSensor.analyse(CxxSquidSensor.java:129)
    at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
    at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
    at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
    at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
    at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
    at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
    at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
    at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
    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:498)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)
    at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
    at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:72)
    at org.sonarsource.scanner.cli.Main.main(Main.java:60)

Interestingly I found that this error could be linked to a code compiled against a particular version of Google Collections, but at runtime runs against another version. This post decsribes the problem : http://stackoverflow.com/questions/8011411/method-that-exists-does-not

Does anyone have the same problem as me ? Any hint on what to do to solve this ?

Jérémie

guwirth commented 8 years ago

@ShogunWeb copy from #882

looking to last cxx position it is:

at org.sonar.cxx.preprocessor.CxxPreprocessor.registerMacros(CxxPreprocessor.java:229)

https://github.com/SonarOpenCommunity/sonar-cxx/blob/42f0627242c616f3e6a75765b31664c2b1fea830/cxx-squid/src/main/java/org/sonar/cxx/preprocessor/CxxPreprocessor.java#L229

registerMacros is called from two positions:

Seems like it is crashing at the first location. But still don't understand what is different because this line is called in all our integration tests?

Interestingly I found that this error could be linked to a code compiled against a particular version of Google Collections, but at runtime runs against another version. This post decsribes the problem : http://stackoverflow.com/questions/8011411/method-that-exists-does-not Does anyone have the same problem as me ? Any hint on what to do to solve this ?

For me, @Bertk and @jmecosta everything is working. Can you try again with default installation of SQ 5.6 and cxx plugin only.

r-schmidtke commented 8 years ago

I'm having the same Problem with a completely new/default SQ 5.6 installation:

INFO: 769 files indexed
INFO: Quality profile for c++: Sonar way
INFO: Quality profile for js: Sonar way
INFO: JaCoCoSensor: JaCoCo report not found : /home/robin/Famoca/trunk/target/jacoco.exec
INFO: JaCoCoItSensor: JaCoCo IT report not found: /home/robin/Famoca/trunk/target/jacoco-it.exec
INFO: Sensor Lines Sensor
INFO: Sensor Lines Sensor (done) | time=145ms
INFO: Sensor CxxSquidSensor
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
    at com.sonar.sslr.api.Token.<init>(Token.java:58)
    at com.sonar.sslr.api.Token.<init>(Token.java:36)
    at com.sonar.sslr.api.Token$Builder.build(Token.java:274)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.registerMacros(CxxPreprocessor.java:229)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:267)
    at org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:216)
    at org.sonar.cxx.parser.CxxParser.create(CxxParser.java:66)
    at org.sonar.cxx.CxxAstScanner.create(CxxAstScanner.java:90)
    at org.sonar.plugins.cxx.squid.CxxSquidSensor.analyse(CxxSquidSensor.java:129)
    at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
    at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
    at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
    at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
    at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
    at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
    at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
    at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
    at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
    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:498)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)
    at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
    at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:72)
    at org.sonarsource.scanner.cli.Main.main(Main.java:60)
ShogunWeb commented 8 years ago

@guwirth : I tested on my Ubuntu (14.04) server to reinstall sonarqube (however keeping the same database), deleted all plugins, and installed only sonar-cxx. Unfortunately I get exactly the same error.

Then I tested on a new install on my mac, and it works fine. I assume the problem is then probably due to the "environment". But I need help to drill further.

On my Mac I had to install Java 8 JDK instead of JRE (a referenced problem, which generated an totally different error). On my Ubuntu server, here is my java version (JRE running JDK):

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode) 

Which java version do you use ?

I don't know if there could be other parameters I should check. Knowing your code, do you have an idea on what could generate errors depending on the server ? Do you think the Google Collections compatibility mentioned above (http://stackoverflow.com/questions/8011411/method-that-exists-does-not) could affect sonar-cxx ?

r-schmidtke commented 8 years ago

My java version:

openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~15.10.1-b14)
OpenJDK Server VM (build 25.91-b14, mixed mode)
jmecosta commented 8 years ago

You guys are checking the java version in server, but it might be more related to what you have where you run the analysis. Given that you don't run in same machine as in server.

We have everything server and build agents all running jdk 1.8 one if the last versions. You could also try to disable all the cxx checks from the profile to see what happens

On Tue, 28 Jun 2016 17:06 r-schmidtke, notifications@github.com wrote:

My java version:

openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~15.10.1-b14) OpenJDK Server VM (build 25.91-b14, mixed mode)

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-229059545, or mute the thread https://github.com/notifications/unsubscribe/AA_jyGQGkCQbx1HeqvjdSPbR-CaHHTZoks5qQSp_gaJpZM4I_JFW .

ShogunWeb commented 8 years ago

In my case, I run the scanner on the same machine as Sonarqube. I will have to check with JDK 1.8

When you say "disable all the checks from the profile", I suppose you mention the quality profiles accessible via the SonarQube interface ? In my case, there is only the Sonar Way profile, and there are no active rules.

jmecosta commented 8 years ago

OK so its not the rules then. Try with jdk then

On Tue, 28 Jun 2016 17:37 ShogunWeb, notifications@github.com wrote:

In my case, I run the scanner on the same machine as Sonarqube. I will have to check with JDK 1.8

When you say "disable all the checks from the profile", I suppose you mention the quality profiles accessible via the SonarQube interface ? In my case, there is only the Sonar Way profile, and there are no active rules.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-229069047, or mute the thread https://github.com/notifications/unsubscribe/AA_jyDqSofTmi2phD1-PvNXM3-xaxJbLks5qQTG-gaJpZM4I_JFW .

ShogunWeb commented 8 years ago

@jmecosta : took some time to install JDK8 (by the way, this is a good reference : http://www.devsniper.com/install-jdk-8-on-ubuntu/ together with http://askubuntu.com/questions/175514/how-to-set-java-home-for-java). Checked my JAVA_HOME pointed to jdk1.8.0, and restarted sonarqube.

However, I have the same error when I run the sonar-scanner

jmecosta commented 8 years ago

Just for reference this is my environment:

[Server] [~]$ java -version java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) [~]$ uname -a Linux l-sonar.tekla.fi 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[Agents] [01:19:43][Step 4/4] [EndPhase] : C:\ProgramData\MSBuidSonarQube\2.1-RC1\MSBuild.SonarQube.Runner.exe end [01:19:44][Step 4/4] SonarQube Scanner for MSBuild 2.1 [01:19:44][Step 4/4] Default properties file was found at C:\ProgramData\MSBuidSonarQube\2.1-RC1\SonarQube.Analysis.xml [01:19:44][Step 4/4] Loading analysis properties from C:\ProgramData\MSBuidSonarQube\2.1-RC1\SonarQube.Analysis.xml [01:19:45][Step 4/4] SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m [01:19:47][Step 4/4] INFO: SonarQube Scanner 2.6 [01:19:47][Step 4/4] INFO: Java 1.8.0_77 Oracle Corporation (64-bit) [01:19:47][Step 4/4] INFO: Windows 10 10.0 amd64 [01:19:47][Step 4/4] INFO: SONAR_SCANNER_OPTS=-Xmx1024m [01:19:50][Step 4/4] INFO: SonarQube server 5.6

We run the analysis in windows machines, and server is in a linux machine. This setup work for us.

guwirth commented 8 years ago

we are using:

Windows 7 64bit
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)
ShogunWeb commented 8 years ago

Ok. And during the scan, I suppose the sonar-cxx runs on the windows machine then (if I understand correctly, sonar-scanner downloads the plugins and runs then locally).

By the way, somebody is using sonar-scanner on an Ubuntu (or any Linux) machine ? @r-schmidtke, are you running sonar-scanner on a linux machine ?

jmecosta commented 8 years ago

the integrations tests run both on windows and linux. so there must be more than just os. see

https://travis-ci.org/SonarOpenCommunity/sonar-cxx

ShogunWeb commented 8 years ago

Do you have any idea where this error comes from ?

jmecosta commented 8 years ago

hard to say, we notice that the sslr toolkit and the guava version used in 5.6 are differnt. so it make comes from there. however because none of us found this behaviour we tought it was safe to proceed with 5.6 release. but it seems that this needs to handle still. And it might be finalized once all the depraceted stuff is removed from code. hopefully

ShogunWeb commented 8 years ago

Not sure to understand : the guava version used in sonarqube 5.6 and sonar-cxx plugin are not the same, is that it ? Is there any way for me to act on this ? When do you think it might be finalized ?

The problem is that I'm stuck with a SonarQube installation I cannot use anymore for C++ projects (the greatest part of the projects I analyse). Unfortunately it is not possible to downgrade SonarQube, so I would loose all history if I install a fresh SonarQube 5.5...

jmecosta commented 8 years ago

Yes I understand but it's difficult to see what's going on, since we don't see this behaviour. Can only guess it's because of those Google libs that mismatch between what the plugin uses and what sonar uses. But even this is a long shot since everyone should see this behaviour.

Usually you should get backups before upgrading just in case so you can revert sonar. But I do agree this is very annoying

On Thu, 30 Jun 2016 21:35 ShogunWeb, notifications@github.com wrote:

Not sure to understand : the guava version used in sonarqube 5.6 and sonar-cxx plugin are not the same, is that it ? Is there any way for me to act on this ? When do you think it might be finalized ?

The problem is that I'm stuck with a SonarQube installation I cannot use anymore for C++ projects (the greatest part of the projects I analyse). Unfortunately it is not possible to downgrade SonarQube, so I would loose all history if I install a fresh SonarQube 5.5...

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-229749321, or mute the thread https://github.com/notifications/unsubscribe/AA_jyE8AXFfkUtd4hslgsqpBiAXFm0Vzks5qRAxegaJpZM4I_JFW .

yoka223344 commented 8 years ago

I also have this problem. My anaylze is running on jdk1.8_73. $uname -a Linux DSLCTST01 3.10.102 #1 SMP Mon Jun 27 11:07:33 CST 2016 x86_64 x86_64 x86_64 GNU/Linux

java and python is work well. How to use sslr-cxx-toolkit-0.9.6.jar? Maybe it's the problem?

jmecosta commented 8 years ago

Java -jar Cxx-toolkit, but I think it should not have issue since it runs outside sonar scanner

On Fri, 1 Jul 2016 13:40 yoka223344, notifications@github.com wrote:

I also have this problem. My anaylze is running on jdk1.8_73. $uname -a Linux DSLCTST01 3.10.102 #1 https://github.com/SonarOpenCommunity/sonar-cxx/pull/1 SMP Mon Jun 27 11:07:33 CST 2016 x86_64 x86_64 x86_64 GNU/Linux

java and python is work well. How to use sslr-cxx-toolkit-0.9.6.jar? Maybe it's the problem?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-229915991, or mute the thread https://github.com/notifications/unsubscribe/AA_jyEdKjgumz3Cs5lEZCGz4EgClnRPvks5qRO6MgaJpZM4I_JFW .

jmecosta commented 8 years ago

@guwirth https://groups.google.com/forum/#!searchin/sonarqube/guava/sonarqube/R8jk9MK9bGI/OAioVvCIAwAJ looks like this problem happen also to findbugs plugin. this is the change https://github.com/SonarQubeCommunity/sonar-findbugs/commit/617f3d2a3d16faa6d266397ac939c4b815253559 in findbugs side.

this means you need to solve https://github.com/SonarOpenCommunity/sonar-cxx/issues/896 as soon as possible

jmecosta commented 8 years ago

@yoka223344 @ShogunWeb @r-schmidtke would you mind trying with this version: https://drive.google.com/open?id=0B_xrJRt_SL8lUjJsUVYtSUw3MWc

yoka223344 commented 8 years ago

@jmecosta It seems I have no access permission of this file, how can I get it? THX~..My google account is luckystone2012@126.com

jmecosta commented 8 years ago

lets do it a bit differently -> https://github.com/jmecosta/sonar-cxx/releases/download/test1/sonar-cxx-plugin-0.9.7-SNAPSHOT.jar

dwerder commented 8 years ago

Hello, we just tried the SNAPSHOT. But it doesn't fixed the issue for us. We are running sonar on Teamcity.

java -version
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)
cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core)
Teamcity 9.1.6
SonarQube Runner 2.4
[08:30:27][Step 14/14] Java 1.8.0_71 Oracle Corporation (64-bit)
[08:30:27][Step 14/14] Linux 3.10.0-327.22.2.el7.x86_64 amd64
[08:30:27][Step 14/14] INFO: Runner configuration file: NONE
[08:30:27][Step 14/14] INFO: Project configuration file: /var/buildagent/work/302afe4e38c5194b/core/./sonar-project.properties
[08:30:27][Step 14/14] INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
[08:30:27][Step 14/14] INFO: Work directory: /var/buildagent/work/302afe4e38c5194b/core/./.sonar
[08:30:27][Step 14/14] INFO: SonarQube Server 5.6
[08:30:27][Step 14/14] 08:31:44.248 INFO  - Load global repositories
[08:30:28][Step 14/14] 08:31:44.557 INFO  - Load global repositories (done) | time=310ms
[08:30:28][Step 14/14] 08:31:44.570 WARN  - Property 'sonar.jdbc.password' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database.
[08:30:28][Step 14/14] 08:31:44.572 INFO  - User cache: /var/buildagent/caches/sonar/cache
[08:30:28][Step 14/14] 08:31:44.721 INFO  - Load plugins index
[08:30:28][Step 14/14] 08:31:44.724 INFO  - Load plugins index (done) | time=3ms
[08:30:28][Step 14/14] 08:31:44.730 INFO  - Download sonar-cxx-plugin-0.9.7-SNAPSHOT.jar
...
[08:30:31][Step 14/14] 08:31:47.464 INFO  - Sensor CxxSquidSensor
[08:30:31][Step 14/14] INFO: ------------------------------------------------------------------------
[08:30:31][Step 14/14] INFO: EXECUTION FAILURE
[08:30:31][Step 14/14] INFO: ------------------------------------------------------------------------
[08:30:31][Step 14/14] Total time: 3.662s
[08:30:31][Step 14/14] ERROR: Error during Sonar runner execution
[08:30:31][Step 14/14] Final Memory: 13M/285M
[08:30:31][Step 14/14] ERROR: Unable to execute Sonar
[08:30:31][Step 14/14] INFO: ------------------------------------------------------------------------
[08:30:31][Step 14/14] ERROR: Caused by: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
[08:30:31][Step 14/14] ERROR: 
[08:30:31][Step 14/14] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
[08:30:31][Step 14/14] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
[08:30:31][Step 14/14] Process exited with code 1
[08:30:31][Step 14/14] Step Run SonarQube (SonarQube Runner) failed
jmecosta commented 8 years ago

ok so this needs to wait until we convert all deprecated sutff to 5.6 -> #903 it might require a bit of stuff since the ammout of stuff that needs handling is huge.

dwerder commented 8 years ago

If you have other SNAPSHOT releases we can try, just post them. :) Thanks.

ShogunWeb commented 8 years ago

Checked the snapshot and it works ok for me ! I don't get any error now. However I don't get any technical debt measurement. Is that normal ?

jmecosta commented 8 years ago

the change shoudl not affect at all the debt.

in 5.6 the tech model has change but i can still find values under measures.

image

sdressler commented 8 years ago

We're also running in this issue. We use the runner inside a docker container and it crashes for both, Ubuntu 14.04 and 16.04. However, it does not crash on the machine when running without docker. The machine itself is also 14.04. Java version is 1.8.0_91 all over.

jmecosta commented 8 years ago

@sdressler try the snapshot, seems to work some times

sdressler commented 8 years ago

@jmecosta tried that, no success.

ShogunWeb commented 8 years ago

I'm experiencing a difference between my local installation which shows code smelss and technical debt, and my linux server installation which shows no code smells not technical debt.

Using debug mode when running the sonar-scanner, I spotted a difference in the execution log. (Local version - OK) INFO: Load global repositories (done) | time=432ms INFO: User cache: /Users/jfays/.sonar/cache INFO: Load plugins index DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | time=6ms INFO: Load plugins index (done) | time=7ms DEBUG: Load plugins DEBUG: Download plugin sonar-cxx-plugin-0.9.7-SNAPSHOT.jar to /Users/jfays/.sonar/cache/_tmp/fileCache4987172351034452594.tmp DEBUG: GET 200 http://localhost:9000/deploy/plugins/cxx/sonar-cxx-plugin-0.9.7-SNAPSHOT.jar | time=5ms DEBUG: Load plugins (done) | time=739ms DEBUG: API compatibility mode is enabled on plugin CSS [css](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Python [python](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin PMD [pmd](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin JSON [JSON](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Widget Lab [widgetlab](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin C# [csharp](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Findbugs [findbugs](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Groovy [groovy](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Java [java](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Web [web](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Git [scmgit](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin XML [xml](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin PHP [php](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Timeline [timeline](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Checkstyle [checkstyle](built with API lower than 5.2) DEBUG: Plugins: DEBUG: * CSS 1.10 (css) DEBUG: * C++ (Community) 0.9.7-SNAPSHOT (cxx) DEBUG: * Python 1.5 (python) DEBUG: * Code Smells 3.0.0 (smells)

(Linux version - NOK) INFO: Load global repositories (done) | time=76ms INFO: Server id: xxxxxxxxxxxxxxxxxx (I suppressed the info) WARN: Property 'sonar.jdbc.url' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. WARN: Property 'sonar.jdbc.username' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. WARN: Property 'sonar.jdbc.password' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database. INFO: User cache: /code_repository/cache/cache INFO: Load plugins index DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | time=2ms INFO: Load plugins index (done) | time=2ms DEBUG: Load plugins DEBUG: Load plugins (done) | time=10ms DEBUG: API compatibility mode is enabled on plugin CSS [css](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Python [python](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin PMD [pmd](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin JSON [JSON](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Motion Chart [motionchart](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Widget Lab [widgetlab](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Java Properties [javaProperties](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin C# [csharp](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Findbugs [findbugs](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Java [java](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Groovy [groovy](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Web [web](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin XML [xml](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin PHP [php](built with API lower than 5.2) DEBUG: API compatibility mode is enabled on plugin Checkstyle [checkstyle](built with API lower than 5.2) DEBUG: Plugins: DEBUG: * C++ (Community) 0.9.7-SNAPSHOT (cxx) DEBUG: * CSS 1.10 (css) DEBUG: * Python 1.5 (python) DEBUG: * Code Smells 3.0.0 (smells)

Do you see any reason why I do not see code smells anymore in the Linux version ?

jmecosta commented 8 years ago

@ShogunWeb those lines are not relevant to the technical debt and smells. the only stuff that is relevat is that issues reports are properly handled. search for the sensors report part and check warnigns related with file not found. etc

jmecosta commented 8 years ago

@dwerder @sdressler have new snapshot https://github.com/jmecosta/sonar-cxx/releases/download/test2/sonar-cxx-plugin-0.9.7-SNAPSHOT.jar

server at least starts locally, the follwoging features deprecated and were removed.

no promises it will work. but you can give a try

jmecosta commented 8 years ago

@dwerder @sdressler nevermind, snapshot does not work

jmecosta commented 8 years ago

@dwerder @sdressler now you can try, ive replace the file just now int the test2 release

dwerder commented 8 years ago

@jmecosta The link doesn't work. 404

jmecosta commented 8 years ago

Yep sorry, I've just removed it. Just notice a null pointer exception. No good. Once I get the local analysis going I publish another

On Tue, 5 Jul 2016 15:30 Daniel Werdermann, notifications@github.com wrote:

@jmecosta https://github.com/jmecosta The link doesn't work. 404

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-230464696, or mute the thread https://github.com/notifications/unsubscribe/AA_jyEFaZnChgX_D9m7LYYX9IPzSCeGBks5qSk5hgaJpZM4I_JFW .

jmecosta commented 8 years ago

@dwerder you can try now

sdressler commented 8 years ago

@jmecosta works for me!

dwerder commented 8 years ago

It works somehow. But now a get just an execution error.

[12:57:26][Step 14/14] 12:58:44.104 INFO  - Quality profile for c++: Sonar way
[12:57:27][Step 14/14] 12:58:44.165 INFO  - JaCoCoSensor: JaCoCo report not found : /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco.exec
[12:57:27][Step 14/14] 12:58:44.165 INFO  - JaCoCoItSensor: JaCoCo IT report not found: /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco-it.exec
[12:57:27][Step 14/14] 12:58:44.193 INFO  - Sensor Lines Sensor
[12:57:27][Step 14/14] 12:58:44.208 INFO  - Sensor Lines Sensor (done) | time=15ms
[12:57:27][Step 14/14] 12:58:44.208 INFO  - Sensor SCM Sensor
[12:57:27][Step 14/14] 12:58:44.215 INFO  - Sensor SCM Sensor (done) | time=7ms
[12:57:27][Step 14/14] 12:58:44.215 INFO  - Sensor CxxSquidSensor
... does some stuff ...
[12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------
[12:57:34][Step 14/14] INFO: EXECUTION FAILURE
[12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------
[12:57:34][Step 14/14] Total time: 11.656s
[12:57:34][Step 14/14] ERROR: Error during Sonar runner execution
[12:57:34][Step 14/14] ERROR: Unable to execute Sonar
[12:57:34][Step 14/14] ERROR: 
[12:57:34][Step 14/14] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
[12:57:34][Step 14/14] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
[12:57:34][Step 14/14] Final Memory: 29M/1081M
[12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------
[12:57:34][Step 14/14] Process exited with code 1
[12:57:35][Step 14/14] Step Run SonarQube (SonarQube Runner) failed
jmecosta commented 8 years ago

OK can you run with -X and send the stacktrace

On Tue, 5 Jul 2016 16:06 Daniel Werdermann, notifications@github.com wrote:

It works somehow. But now a get just an execution error.

[12:57:26][Step 14/14] 12:58:44.104 INFO - Quality profile for c++: Sonar way [12:57:27][Step 14/14] 12:58:44.165 INFO - JaCoCoSensor: JaCoCo report not found : /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco.exec [12:57:27][Step 14/14] 12:58:44.165 INFO - JaCoCoItSensor: JaCoCo IT report not found: /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco-it.exec [12:57:27][Step 14/14] 12:58:44.193 INFO - Sensor Lines Sensor [12:57:27][Step 14/14] 12:58:44.208 INFO - Sensor Lines Sensor (done) | time=15ms [12:57:27][Step 14/14] 12:58:44.208 INFO - Sensor SCM Sensor [12:57:27][Step 14/14] 12:58:44.215 INFO - Sensor SCM Sensor (done) | time=7ms [12:57:27][Step 14/14] 12:58:44.215 INFO - Sensor CxxSquidSensor ... does some stuff ... [12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------ [12:57:34][Step 14/14] INFO: EXECUTION FAILURE [12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------ [12:57:34][Step 14/14] Total time: 11.656s [12:57:34][Step 14/14] ERROR: Error during Sonar runner execution [12:57:34][Step 14/14] ERROR: Unable to execute Sonar [12:57:34][Step 14/14] ERROR: [12:57:34][Step 14/14] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. [12:57:34][Step 14/14] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging. [12:57:34][Step 14/14] Final Memory: 29M/1081M [12:57:34][Step 14/14] INFO: ------------------------------------------------------------------------ [12:57:34][Step 14/14] Process exited with code 1 [12:57:35][Step 14/14] Step Run SonarQube (SonarQube Runner) failed

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-230472678, or mute the thread https://github.com/notifications/unsubscribe/AA_jyI9_S3wZ5DfcqQS8MYM_-KxetVYLks5qSlbqgaJpZM4I_JFW .

dwerder commented 8 years ago

With -x

[14:09:56][Step 14/14] 14:11:13.529 DEBUG - Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
[14:09:56][Step 14/14] 14:11:13.529 DEBUG - Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
[14:09:56][Step 14/14] 14:11:13.529 DEBUG - Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
[14:09:56][Step 14/14] INFO: ------------------------------------------------------------------------
[14:09:56][Step 14/14] INFO: EXECUTION FAILURE
[14:09:56][Step 14/14] INFO: ------------------------------------------------------------------------
[14:09:56][Step 14/14] Total time: 9.884s
[14:09:56][Step 14/14] Final Memory: 26M/968M
[14:09:56][Step 14/14] INFO: ------------------------------------------------------------------------
[14:09:56][Step 14/14] ERROR: Error during Sonar runner execution
[14:09:56][Step 14/14] org.sonar.runner.impl.RunnerException: Unable to execute Sonar
[14:09:56][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
[14:09:56][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
[14:09:56][Step 14/14]  at java.security.AccessController.doPrivileged(Native Method)
[14:09:56][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
[14:09:56][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
[14:09:56][Step 14/14]  at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
[14:09:56][Step 14/14]  at org.sonar.runner.api.Runner.execute(Runner.java:100)
[14:09:56][Step 14/14]  at org.sonar.runner.Main.executeTask(Main.java:70)
[14:09:56][Step 14/14]  at org.sonar.runner.Main.execute(Main.java:59)
[14:09:56][Step 14/14]  at org.sonar.runner.Main.main(Main.java:53)
[14:09:56][Step 14/14] Caused by: java.lang.NullPointerException
[14:09:56][Step 14/14]  at org.sonar.plugins.cxx.squid.DependencyAnalyzer.addFile(DependencyAnalyzer.java:89)
[14:09:56][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.save(CxxSquidSensor.java:169)
[14:09:56][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.execute(CxxSquidSensor.java:128)
[14:09:56][Step 14/14]  at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
[14:09:56][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
[14:09:56][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
[14:09:56][Step 14/14]  at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
[14:09:56][Step 14/14]  at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:09:56][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
[14:09:56][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
[14:09:56][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
[14:09:56][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:09:56][Step 14/14]  at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
[14:09:56][Step 14/14]  at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:09:56][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:09:56][Step 14/14]  at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
[14:09:56][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
[14:09:56][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)
[14:09:56][Step 14/14]  at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
[14:09:56][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14:09:56][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[14:09:56][Step 14/14]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[14:09:56][Step 14/14]  at java.lang.reflect.Method.invoke(Method.java:497)
[14:09:56][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
[14:09:56][Step 14/14]  ... 9 more
[14:09:56][Step 14/14] Process exited with code 1
[14:09:56][Step 14/14] Step Run SonarQube (SonarQube Runner) failed
jmecosta commented 8 years ago

ok thanks, i will fix that. by the way if you have projects that have external sensors running please check those

jmecosta commented 8 years ago

@dwerder it does not make much sence why it fails. ive uploaded a new jar to same release with more debug printing. can you provide those.

dwerder commented 8 years ago

Its a snippet of the log. The complete log has 8k lines, but it should cover the importent parts.

[15:28:49][Step 14/14] INFO: SonarQube Server 5.6
[15:28:49][Step 14/14] 15:30:07.223 DEBUG - Publish global mode
[15:28:50][Step 14/14] 15:30:07.384 INFO  - Load global repositories
[15:28:50][Step 14/14] 15:30:07.583 DEBUG - GET 200 http://sonar.xxxx.xxxx/batch/global | time=198ms
[15:28:50][Step 14/14] 15:30:07.614 INFO  - Load global repositories (done) | time=231ms
[15:28:50][Step 14/14] 15:30:07.625 WARN  - Property 'sonar.jdbc.password' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database.
[15:28:50][Step 14/14] 15:30:07.627 INFO  - User cache: /var/buildagent/caches/sonar/cache
[15:28:50][Step 14/14] 15:30:07.788 INFO  - Load plugins index
[15:28:50][Step 14/14] 15:30:07.794 DEBUG - GET 200 http://sonar.xxxx.xxxx/deploy/plugins/index.txt | time=6ms
[15:28:50][Step 14/14] 15:30:07.794 INFO  - Load plugins index (done) | time=6ms
[15:28:50][Step 14/14] 15:30:07.795 DEBUG - Load plugins
[15:28:50][Step 14/14] 15:30:07.800 DEBUG - Download plugin sonar-cxx-plugin-0.9.7-Test2.jar to /var/buildagent/caches/sonar/cache/_tmp/fileCache4131343608781445490.tmp
[15:28:50][Step 14/14] 15:30:07.803 DEBUG - GET 200 http://sonar.xxxx.xxxx/deploy/plugins/cxx/sonar-cxx-plugin-0.9.7-Test2.jar | time=3ms
[15:28:50][Step 14/14] 15:30:08.072 DEBUG - Load plugins (done) | time=277ms
[15:28:50][Step 14/14] 15:30:08.072 DEBUG - API compatibility mode is enabled on plugin Cobertura [cobertura] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.157 DEBUG - API compatibility mode is enabled on plugin Java [java] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.158 DEBUG - API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.158 DEBUG - API compatibility mode is enabled on plugin ObjectiveC [backelitesonarobjectivecplugin] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.159 DEBUG - API compatibility mode is enabled on plugin Android [android] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.159 DEBUG - API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG - Plugins:
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * Cobertura 1.6.3 (cobertura)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * C++ (Community) 0.9.7-SNAPSHOT (cxx)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * Java 3.14 (java)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * LDAP 2.0 (ldap)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * Git 1.2 (scmgit)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * ObjectiveC 0.5.1 (backelitesonarobjectivecplugin)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * Android 1.1 (android)
[15:28:50][Step 14/14] 15:30:08.213 DEBUG -   * SVN 1.3 (scmsvn)
[15:28:51][Step 14/14] 15:30:08.348 INFO  - Process project properties
[15:28:51][Step 14/14] 15:30:08.355 WARN  - /!\ A multi-module project can't have source folders, so '/var/buildagent/work/302afe4e38c5194b/core' won't be used for the analysis. If you want to analyse files of this folder, you should create another sub-module and move them inside it.
[15:28:51][Step 14/14] 15:30:08.355 DEBUG - Process project properties (done) | time=7ms
[15:28:51][Step 14/14] 15:30:08.409 INFO  - Load project repositories
[15:28:51][Step 14/14] 15:30:08.673 DEBUG - GET 200 http://sonar.xxxx.xxxx/batch/project.protobuf?key=xxxxxxxxx | time=263ms
[15:28:51][Step 14/14] 15:30:08.771 INFO  - Load project repositories (done) | time=362ms
[15:28:51][Step 14/14] 15:30:08.779 DEBUG - using CxxProjectBuilder
[15:28:51][Step 14/14] 15:30:08.780 INFO  - Execute project builders
[15:28:51][Step 14/14] 15:30:08.784 INFO  - Execute project builders (done) | time=4ms
[15:28:51][Step 14/14] 15:30:08.840 DEBUG - Available languages:
[15:28:51][Step 14/14] 15:30:08.840 DEBUG -   * c++ => "c++"
[15:28:51][Step 14/14] 15:30:08.840 DEBUG -   * Java => "java"
[15:28:51][Step 14/14] 15:30:08.840 DEBUG -   * Objective-C => "objc"
[15:28:51][Step 14/14] 15:30:08.842 INFO  - Load quality profiles
[15:28:51][Step 14/14] 15:30:08.943 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/qualityprofiles/search.protobuf?projectKey=xxxxxxxxxx | time=101ms
[15:28:51][Step 14/14] 15:30:08.945 INFO  - Load quality profiles (done) | time=103ms
[15:28:51][Step 14/14] 15:30:08.948 INFO  - Load active rules
[15:28:52][Step 14/14] 15:30:09.523 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=c%2B%2B-sonar-way-08741&p=1&ps=500 | time=575ms
[15:28:52][Step 14/14] 15:30:09.666 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=c%2B%2B-sonar-way-08741&p=2&ps=500 | time=115ms
[15:28:52][Step 14/14] 15:30:09.809 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-sonar-way-23092&p=1&ps=500 | time=140ms
[15:28:52][Step 14/14] 15:30:09.870 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=objc-oclint-09523&p=1&ps=500 | time=58ms
[15:28:52][Step 14/14] 15:30:09.879 INFO  - Load active rules (done) | time=931ms
[15:28:52][Step 14/14] 15:30:09.908 INFO  - Publish mode
[15:28:52][Step 14/14] 15:30:09.908 DEBUG - Start recursive analysis of project modules
[15:28:52][Step 14/14] 15:30:09.909 INFO  - -------------  Scan config-service
[15:28:52][Step 14/14] 15:30:09.975 INFO  - Language is forced to c++
[15:28:52][Step 14/14] 15:30:09.976 INFO  - Load server rules
[15:28:52][Step 14/14] 15:30:10.222 DEBUG - GET 200 http://sonar.xxxx.xxxx/api/rules/list.protobuf | time=246ms
[15:28:53][Step 14/14] 15:30:10.235 INFO  - Load server rules (done) | time=259ms
[15:28:53][Step 14/14] 15:30:10.289 INFO  - Excluded sources for coverage: 
[15:28:53][Step 14/14] 15:30:10.289 INFO  -   build/**/*
[15:28:53][Step 14/14] 15:30:10.289 INFO  -   **/tests/**/*
[15:28:53][Step 14/14] 15:30:10.289 INFO  -   **/integration-tests/**/*
[15:28:53][Step 14/14] 15:30:10.296 DEBUG - Initializers : 
[15:28:53][Step 14/14] 15:30:10.296 INFO  - Base dir: /var/buildagent/work/302afe4e38c5194b/core/config-service
[15:28:53][Step 14/14] 15:30:10.296 INFO  - Working dir: /var/buildagent/work/302afe4e38c5194b/core/.sonar/config-service
[15:28:53][Step 14/14] 15:30:10.296 INFO  - Source paths: .
[15:28:53][Step 14/14] 15:30:10.296 INFO  - Source encoding: UTF-8, default locale: en_US
[15:28:53][Step 14/14] 15:30:10.296 INFO  - Index files
[15:28:53][Step 14/14] 15:30:10.297 INFO  - Excluded sources: 
[15:28:53][Step 14/14] 15:30:10.297 INFO  -   build/**/*
[15:28:53][Step 14/14] 15:30:10.303 DEBUG - Declared extensions of language c++ were converted to sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h
[15:28:53][Step 14/14] 15:30:10.303 DEBUG - Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
[15:28:53][Step 14/14] 15:30:10.303 DEBUG - Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.h,**/*.m

[15:28:53][Step 14/14] 15:30:10.323 INFO  - 21 files indexed
[15:28:53][Step 14/14] 15:30:10.323 INFO  - 0 files ignored because of inclusion/exclusion patterns
[15:28:53][Step 14/14] 15:30:10.327 INFO  - Quality profile for c++: Sonar way
[15:28:53][Step 14/14] 15:30:10.387 INFO  - JaCoCoSensor: JaCoCo report not found : /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco.exec
[15:28:53][Step 14/14] 15:30:10.387 INFO  - JaCoCoItSensor: JaCoCo IT report not found: /var/buildagent/work/302afe4e38c5194b/core/config-service/target/jacoco-it.exec
[15:28:53][Step 14/14] 15:30:10.389 DEBUG - Code colorizer, supported languages: c++,objc
[15:28:53][Step 14/14] 15:30:10.420 DEBUG - Sensors : Lines Sensor (wrapped) -> SCM Sensor (wrapped) -> CxxSquidSensor (wrapped) -> CxxRatsSensor (wrapped) -> CxxXunitSensor (wrapped) -> CxxCoverageSensor (wrapped) -> CxxCppCheckSensor (wrapped) -> CxxPCLintSensor (wrapped) -> CxxDrMemorySensor (wrapped) -> CxxCompilerSensor (wrapped) -> CxxVeraxxSensor (wrapped) -> CxxValgrindSensor (wrapped) -> CxxExternalRulesSensor (wrapped) -> Unit Test Results Import (wrapped) -> Zero Coverage Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Block Indexer (wrapped)
[15:28:53][Step 14/14] 15:30:10.420 INFO  - Sensor Lines Sensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.431 INFO  - Sensor Lines Sensor (wrapped) (done) | time=11ms
[15:28:53][Step 14/14] 15:30:10.431 INFO  - Sensor SCM Sensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.437 INFO  - Sensor SCM Sensor (wrapped) (done) | time=6ms
[15:28:53][Step 14/14] 15:30:10.437 INFO  - Sensor CxxSquidSensor (wrapped)

a lot DEBUG, INFO and WARN and some ERRORs

[15:28:53][Step 14/14] 15:30:10.857 INFO  - Sensor CxxSquidSensor (wrapped) (done) | time=420ms
[15:28:53][Step 14/14] 15:30:10.857 INFO  - Sensor CxxRatsSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.857 ERROR - Undefined report path value for key 'sonar.cxx.rats.reportPath'
[15:28:53][Step 14/14] 15:30:10.857 INFO  - RATS issues processed = 0
[15:28:53][Step 14/14] 15:30:10.858 INFO  - Sensor CxxRatsSensor (wrapped) (done) | time=1ms
[15:28:53][Step 14/14] 15:30:10.858 INFO  - Sensor CxxXunitSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.859 DEBUG - Normalized report includes to '[/var/buildagent/work/302afe4e38c5194b/core/config-service/build/gtester-reports/*junit-report.xml]'
[15:28:53][Step 14/14] 15:30:10.867 INFO  - Scanner found '0' report files
[15:28:53][Step 14/14] 15:30:10.868 WARN  - Cannot find a report for 'sonar.cxx.xunit.reportPath'
[15:28:53][Step 14/14] 15:30:10.868 DEBUG - No reports found, nothing to process
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxXunitSensor (wrapped) (done) | time=10ms
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxCoverageSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.868 DEBUG - Coverage BaseDir '/var/buildagent/work/302afe4e38c5194b/core/config-service' 
[15:28:53][Step 14/14] 15:30:10.868 DEBUG - Parsing coverage reports
[15:28:53][Step 14/14] 15:30:10.868 DEBUG - Normalized report includes to '[/var/buildagent/work/302afe4e38c5194b/core/config-service/build/config-service-coverage.xml]'
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Scanner found '0' report files
[15:28:53][Step 14/14] 15:30:10.868 WARN  - Cannot find a report for 'sonar.cxx.coverage.reportPath'
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxCoverageSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxCppCheckSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.868 DEBUG - Normalized report includes to '[/var/buildagent/work/302afe4e38c5194b/core/config-service/build/some-service-cppcheck-reports/*.xml]'
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Scanner found '0' report files
[15:28:53][Step 14/14] 15:30:10.868 WARN  - Cannot find a report for 'sonar.cxx.cppcheck.reportPath'
[15:28:53][Step 14/14] 15:30:10.868 INFO  - CppCheck Errors processed = 0
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxCppCheckSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxPCLintSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.868 ERROR - Undefined report path value for key 'sonar.cxx.pclint.reportPath'
[15:28:53][Step 14/14] 15:30:10.868 INFO  - PC-Lint errors processed = 0
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxPCLintSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.868 INFO  - Sensor CxxDrMemorySensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 ERROR - Undefined report path value for key 'sonar.cxx.drmemory.reportPath'
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Dr Memory errors processed = 0
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxDrMemorySensor (wrapped) (done) | time=1ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxCompilerSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 ERROR - Undefined report path value for key 'sonar.cxx.compiler.reportPath'
[15:28:53][Step 14/14] 15:30:10.869 INFO  - C++ compiler Warnings processed = 0
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxCompilerSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxVeraxxSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 ERROR - Undefined report path value for key 'sonar.cxx.vera.reportPath'
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Vera++ rule violations processed = 0
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxVeraxxSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxValgrindSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 ERROR - Undefined report path value for key 'sonar.cxx.valgrind.reportPath'
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Valgrind errors processed = 0
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxValgrindSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxExternalRulesSensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 ERROR - Undefined report path value for key 'sonar.cxx.other.reportPath'
[15:28:53][Step 14/14] 15:30:10.869 INFO  - External C++ rules violations processed = 0
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor CxxExternalRulesSensor (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor Unit Test Results Import (wrapped)
[15:28:53][Step 14/14] 15:30:10.869 DEBUG - No unit test results property. Skip Sensor
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor Unit Test Results Import (wrapped) (done) | time=0ms
[15:28:53][Step 14/14] 15:30:10.869 INFO  - Sensor Zero Coverage Sensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.894 INFO  - Sensor Zero Coverage Sensor (wrapped) (done) | time=25ms
[15:28:53][Step 14/14] 15:30:10.894 INFO  - Sensor Code Colorizer Sensor (wrapped)
[15:28:53][Step 14/14] 15:30:10.952 INFO  - Sensor Code Colorizer Sensor (wrapped) (done) | time=58ms
[15:28:53][Step 14/14] 15:30:10.952 INFO  - Sensor CPD Block Indexer (wrapped)
[15:28:53][Step 14/14] 15:30:10.952 INFO  - DefaultCpdBlockIndexer is used for c++

[15:29:00][Step 14/14] 15:30:17.624 DEBUG - Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
[15:29:00][Step 14/14] 15:30:17.625 DEBUG - Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
[15:29:00][Step 14/14] 15:30:17.626 DEBUG - Rule null
[15:29:00][Step 14/14] 15:30:17.626 DEBUG - Sensor org.sonar.batch.deprecated.DeprecatedSensorContext@67bb4dcd
[15:29:00][Step 14/14] 15:30:17.626 DEBUG - Include org.sonar.cxx.preprocessor.CxxPreprocessor$Include@aad1383f
[15:29:00][Step 14/14] 15:30:17.626 DEBUG - null
[15:29:00][Step 14/14] INFO: ------------------------------------------------------------------------
[15:29:00][Step 14/14] INFO: EXECUTION FAILURE
[15:29:00][Step 14/14] INFO: ------------------------------------------------------------------------
[15:29:00][Step 14/14] Total time: 10.983s
[15:29:00][Step 14/14] Final Memory: 21M/879M
[15:29:00][Step 14/14] INFO: ------------------------------------------------------------------------
[15:29:00][Step 14/14] ERROR: Error during Sonar runner execution
[15:29:00][Step 14/14] org.sonar.runner.impl.RunnerException: Unable to execute Sonar
[15:29:00][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
[15:29:00][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
[15:29:00][Step 14/14]  at java.security.AccessController.doPrivileged(Native Method)
[15:29:00][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
[15:29:00][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
[15:29:00][Step 14/14]  at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
[15:29:00][Step 14/14]  at org.sonar.runner.api.Runner.execute(Runner.java:100)
[15:29:00][Step 14/14]  at org.sonar.runner.Main.executeTask(Main.java:70)
[15:29:00][Step 14/14]  at org.sonar.runner.Main.execute(Main.java:59)
[15:29:00][Step 14/14]  at org.sonar.runner.Main.main(Main.java:53)
[15:29:00][Step 14/14] Caused by: java.lang.NullPointerException
[15:29:00][Step 14/14]  at org.sonar.plugins.cxx.squid.DependencyAnalyzer.addFile(DependencyAnalyzer.java:91)
[15:29:00][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.save(CxxSquidSensor.java:169)
[15:29:00][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.execute(CxxSquidSensor.java:128)
[15:29:00][Step 14/14]  at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
[15:29:00][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
[15:29:00][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
[15:29:00][Step 14/14]  at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
[15:29:00][Step 14/14]  at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[15:29:00][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
[15:29:00][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
[15:29:00][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
[15:29:00][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[15:29:00][Step 14/14]  at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
[15:29:00][Step 14/14]  at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[15:29:00][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[15:29:00][Step 14/14]  at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
[15:29:00][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
[15:29:00][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)
[15:29:00][Step 14/14]  at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
[15:29:00][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:29:00][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:29:00][Step 14/14]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:29:00][Step 14/14]  at java.lang.reflect.Method.invoke(Method.java:497)
[15:29:00][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
[15:29:00][Step 14/14]  ... 9 more
[15:29:00][Step 14/14] Process exited with code 1
[15:29:00][Step 14/14] Step Run SonarQube (SonarQube Runner) failed
jmecosta commented 8 years ago

ok i undersntad, to confirm cna you enable the squid rules from the c++ plugin? you need the duplicated include rule

jmecosta commented 8 years ago

@dwerder uploaded a new one that should not crash in that place

dwerder commented 8 years ago
[17:18:17][Step 14/14] ERROR: Error during Sonar runner execution
[17:18:17][Step 14/14] org.sonar.runner.impl.RunnerException: Unable to execute Sonar
[17:18:17][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
[17:18:17][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
[17:18:17][Step 14/14]  at java.security.AccessController.doPrivileged(Native Method)
[17:18:17][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
[17:18:17][Step 14/14]  at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
[17:18:17][Step 14/14]  at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
[17:18:17][Step 14/14]  at org.sonar.runner.api.Runner.execute(Runner.java:100)
[17:18:17][Step 14/14]  at org.sonar.runner.Main.executeTask(Main.java:70)
[17:18:17][Step 14/14]  at org.sonar.runner.Main.execute(Main.java:59)
[17:18:17][Step 14/14]  at org.sonar.runner.Main.main(Main.java:53)
[17:18:17][Step 14/14] Caused by: java.lang.IllegalStateException: The graph already contains the edge : org.sonar.plugins.cxx.squid.FileEdge@51e754e1
[17:18:17][Step 14/14]  at org.sonar.graph.DirectedGraph.addEdgeToMap(DirectedGraph.java:82)
[17:18:17][Step 14/14]  at org.sonar.graph.DirectedGraph.addEdge(DirectedGraph.java:68)
[17:18:17][Step 14/14]  at org.sonar.plugins.cxx.squid.DependencyAnalyzer.addFile(DependencyAnalyzer.java:113)
[17:18:17][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.save(CxxSquidSensor.java:169)
[17:18:17][Step 14/14]  at org.sonar.plugins.cxx.squid.CxxSquidSensor.execute(CxxSquidSensor.java:128)
[17:18:17][Step 14/14]  at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
[17:18:17][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
[17:18:17][Step 14/14]  at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
[17:18:17][Step 14/14]  at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
[17:18:17][Step 14/14]  at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[17:18:17][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
[17:18:17][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
[17:18:17][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
[17:18:17][Step 14/14]  at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[17:18:17][Step 14/14]  at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
[17:18:17][Step 14/14]  at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[17:18:17][Step 14/14]  at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[17:18:17][Step 14/14]  at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
[17:18:17][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
[17:18:17][Step 14/14]  at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)
[17:18:17][Step 14/14]  at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
[17:18:17][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[17:18:17][Step 14/14]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[17:18:17][Step 14/14]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:18:17][Step 14/14]  at java.lang.reflect.Method.invoke(Method.java:497)
[17:18:17][Step 14/14]  at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
[17:18:17][Step 14/14]  ... 9 more
[17:18:17][Step 14/14] Process exited with code 1
[17:18:18][Step 14/14] Step Run SonarQube (SonarQube Runner) failed
jmecosta commented 8 years ago

@dwerder one more uploaded, this cyclic dependncy check has been heavely refactored, so that all stuff that was in ui is removed and only the issues are reported.

dwerder commented 8 years ago

It seems to work. I still get some errors, that paths are not set. But I don't know if this is an issue with the new SonarQube.

[17:52:07][Step 14/14] 17:53:25.016 ERROR - Undefined report path value for key 'sonar.cxx.rats.reportPath'

[17:52:07][Step 14/14] 17:53:25.027 WARN  - Cannot find a report for 'sonar.cxx.coverage.reportPath'
[17:52:07][Step 14/14] 17:53:25.027 INFO  - Sensor CxxCoverageSensor (wrapped) (done) | time=0ms
[17:52:07][Step 14/14] 17:53:25.027 INFO  - Sensor CxxCppCheckSensor (wrapped)
[17:52:07][Step 14/14] 17:53:25.027 DEBUG - Normalized report includes to '[/var/buildagent/work/302afe4e38c5194b/core/config-service/build/config-service-cppcheck-reports/*.xml]'
[17:52:07][Step 14/14] 17:53:25.027 INFO  - Scanner found '0' report files
[17:52:07][Step 14/14] 17:53:25.027 WARN  - Cannot find a report for 'sonar.cxx.cppcheck.reportPath'
[17:52:07][Step 14/14] 17:53:25.027 INFO  - CppCheck Errors processed = 0
[17:52:07][Step 14/14] 17:53:25.027 INFO  - Sensor CxxCppCheckSensor (wrapped) (done) | time=0ms
[17:52:42][Step 14/14] 17:53:59.853 INFO  - CPD calculation finished
[17:52:44][Step 14/14] 17:54:01.857 INFO  - Analysis report generated in 1656ms, dir size=19 MB
[17:52:48][Step 14/14] 17:54:05.874 INFO  - Analysis reports compressed in 4017ms, zip size=10 MB
[17:52:48][Step 14/14] 17:54:05.874 INFO  - Analysis report generated in /var/buildagent/work/302afe4e38c5194b/core/./.sonar/batch-report
[17:52:48][Step 14/14] 17:54:05.874 DEBUG - Upload report
[17:52:49][Step 14/14] 17:54:06.618 DEBUG - POST 200 http://sonar.xxxx.xxxx/api/ce/submit?projectKey=xxxx.xxxx | time=744ms
[17:52:49][Step 14/14] 17:54:06.619 INFO  - Analysis report uploaded in 745ms
[17:52:49][Step 14/14] Publishing artifacts
[17:52:49][Step 14/14] 17:54:06.620 INFO  - ANALYSIS SUCCESSFUL, you can browse http://sonar.xxxx.xxxx/dashboard/index/xxxx.xxxx:core
[17:52:49][Step 14/14] 17:54:06.620 INFO  - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[17:52:49][Step 14/14] 17:54:06.620 INFO  - More about the report processing at http://sonar.xxxx.xxxx/api/ce/task?id=xxxx.xxxx
[17:52:49][Step 14/14] 17:54:06.624 DEBUG - Report metadata written to /var/buildagent/work/302afe4e38c5194b/core/./.sonar/report-task.txt
[17:52:49][Step 14/14] 17:54:06.624 DEBUG - Post-jobs : 
[17:52:49][Step 14/14] INFO: ------------------------------------------------------------------------
[17:52:49][Step 14/14] INFO: EXECUTION SUCCESS
[17:52:49][Step 14/14] INFO: ------------------------------------------------------------------------
[17:52:49][Step 14/14] Total time: 46.067s
[17:52:49][Step 14/14] Final Memory: 41M/1685M
[17:52:49][Step 14/14] INFO: ------------------------------------------------------------------------
[17:52:49][Step 14/14] Process exited with code 0