{"action":"created","issue":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/898","repository_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/898/labels{/name}","comments_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/898/comments","events_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/898/events","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/898","id":162463398,"number":898,"title":"sonar-cxx 0.9.6 : compatibility issue with google collection ? ","user":{"login":"ShogunWeb","id":8738882,"avatar_url":"https://avatars.githubusercontent.com/u/8738882?v=3","gravatar_id":"","url":"https://api.github.com/users/ShogunWeb","html_url":"https://github.com/ShogunWeb","followers_url":"https://api.github.com/users/ShogunWeb/followers","following_url":"https://api.github.com/users/ShogunWeb/following{/other_user}","gists_url":"https://api.github.com/users/ShogunWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/ShogunWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShogunWeb/subscriptions","organizations_url":"https://api.github.com/users/ShogunWeb/orgs","repos_url":"https://api.github.com/users/ShogunWeb/repos","events_url":"https://api.github.com/users/ShogunWeb/events{/privacy}","received_events_url":"https://api.github.com/users/ShogunWeb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-06-27T14:19:29Z","updated_at":"2016-07-01T20:06:04Z","closed_at":null,"body":"Hi,\r\nI 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).\r\n\r\nI'm using SonarQube 5.6.\r\nThe error occurs during an analysis using sonar-scanner 2.6.1.\r\n\r\nIt seems to be linked to CxxSquidSensor, as I don't have problems when I analyse a project in python.\r\n\r\nHere is the end of the log (and sonar-scanner crashes after that):\r\n\r\n```\r\nINFO: 164 files indexed\r\nINFO: Quality profile for c++: Sonar way\r\nINFO: JaCoCoSensor: JaCoCo report not found : /code_repository/Waves/target/jacoco.exec\r\nINFO: JaCoCoItSensor: JaCoCo IT report not found: /code_repository/Waves/target/jacoco-it.exec\r\nDEBUG: Code colorizer, supported languages: pp,cs,c++,web,py,grvy\r\nDEBUG: 'JavaScript Squid Sensor' skipped because there is no related file in current project\r\nDEBUG: Sensors : Lines Sensor (wrapped) -> CxxSquidSensor -> CxxCoverageSensor -> CxxCppCheckSensor -> SCM Sensor (wrapped) -> Zero Coverage Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Block Indexer (wrapped)\r\nINFO: Sensor Lines Sensor (wrapped)\r\nINFO: Sensor Lines Sensor (wrapped) (done) | time=22ms\r\nINFO: Sensor CxxSquidSensor\r\nException in thread \"main\" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;\r\n\tat com.sonar.sslr.api.Token.<init>(Token.java:58)\r\n\tat com.sonar.sslr.api.Token.<init>(Token.java:36)\r\n\tat com.sonar.sslr.api.Token$Builder.build(Token.java:274)\r\n\tat org.sonar.cxx.preprocessor.CxxPreprocessor.registerMacros(CxxPreprocessor.java:229)\r\n\tat org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:267)\r\n\tat org.sonar.cxx.preprocessor.CxxPreprocessor.<init>(CxxPreprocessor.java:216)\r\n\tat org.sonar.cxx.parser.CxxParser.create(CxxParser.java:66)\r\n\tat org.sonar.cxx.CxxAstScanner.create(CxxAstScanner.java:90)\r\n\tat org.sonar.plugins.cxx.squid.CxxSquidSensor.analyse(CxxSquidSensor.java:129)\r\n\tat org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)\r\n\tat org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)\r\n\tat org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)\r\n\tat org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n\tat org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)\r\n\tat org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)\r\n\tat org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n\tat org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)\r\n\tat org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n\tat org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)\r\n\tat org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)\r\n\tat org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)\r\n\tat com.sun.proxy.$Proxy0.execute(Unknown Source)\r\n\tat org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)\r\n\tat org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)\r\n\tat org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)\r\n\tat org.sonarsource.scanner.cli.Main.execute(Main.java:72)\r\n\tat org.sonarsource.scanner.cli.Main.main(Main.java:60)\r\n```\r\n\r\n\r\nInterestingly 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\r\n\r\nDoes anyone have the same problem as me ? Any hint on what to do to solve this ?\r\n\r\nJérémie\r\n "},"comment":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/comments/230036400","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-230036400","issue_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/898","id":230036400,"user":{"login":"jmecosta","id":1041352,"avatar_url":"https://avatars.githubusercontent.com/u/1041352?v=3","gravatar_id":"","url":"https://api.github.com/users/jmecosta","html_url":"https://github.com/jmecosta","followers_url":"https://api.github.com/users/jmecosta/followers","following_url":"https://api.github.com/users/jmecosta/following{/other_user}","gists_url":"https://api.github.com/users/jmecosta/gists{/gist_id}","starred_url":"https://api.github.com/users/jmecosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmecosta/subscriptions","organizations_url":"https://api.github.com/users/jmecosta/orgs","repos_url":"https://api.github.com/users/jmecosta/repos","events_url":"https://api.github.com/users/jmecosta/events{/privacy}","received_events_url":"https://api.github.com/users/jmecosta/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T20:06:04Z","updated_at":"2016-07-01T20:06:04Z","body":"Java -jar Cxx-toolkit,  but I think it should not have issue since it runs\noutside sonar scanner\n\nOn Fri, 1 Jul 2016 13:40 yoka223344, <notifications@github.com> wrote:\n\n> I also have this problem. My anaylze is running on jdk1.8_73.\n> $uname -a\n> Linux DSLCTST01 3.10.102 #1\n> <https://github.com/SonarOpenCommunity/sonar-cxx/pull/1> SMP Mon Jun 27\n> 11:07:33 CST 2016 x86_64 x86_64 x86_64 GNU/Linux\n>\n> java and python is work well. How to use sslr-cxx-toolkit-0.9.6.jar? Maybe\n> it's the problem?\n>\n> —\n> You are receiving this because you were mentioned.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/SonarOpenCommunity/sonar-cxx/issues/898#issuecomment-229915991>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AA_jyEdKjgumz3Cs5lEZCGz4EgClnRPvks5qRO6MgaJpZM4I_JFW>\n> .\n>\n"}}
{"actor":{"display_login":"jmecosta"}}