{"action":"created","issue":{"url":"https://api.github.com/repos/uartois/sonar-golang/issues/43","repository_url":"https://api.github.com/repos/uartois/sonar-golang","labels_url":"https://api.github.com/repos/uartois/sonar-golang/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/uartois/sonar-golang/issues/43/comments","events_url":"https://api.github.com/repos/uartois/sonar-golang/issues/43/events","html_url":"https://github.com/uartois/sonar-golang/issues/43","id":277193385,"number":43,"title":"Question: \"java.lang.IllegalArgumentException: expected one element but was...\"","user":{"login":"mrbacus","id":7094407,"avatar_url":"https://avatars2.githubusercontent.com/u/7094407?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbacus","html_url":"https://github.com/mrbacus","followers_url":"https://api.github.com/users/mrbacus/followers","following_url":"https://api.github.com/users/mrbacus/following{/other_user}","gists_url":"https://api.github.com/users/mrbacus/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbacus/subscriptions","organizations_url":"https://api.github.com/users/mrbacus/orgs","repos_url":"https://api.github.com/users/mrbacus/repos","events_url":"https://api.github.com/users/mrbacus/events{/privacy}","received_events_url":"https://api.github.com/users/mrbacus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"thibaultfalque","id":6603358,"avatar_url":"https://avatars3.githubusercontent.com/u/6603358?v=4","gravatar_id":"","url":"https://api.github.com/users/thibaultfalque","html_url":"https://github.com/thibaultfalque","followers_url":"https://api.github.com/users/thibaultfalque/followers","following_url":"https://api.github.com/users/thibaultfalque/following{/other_user}","gists_url":"https://api.github.com/users/thibaultfalque/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultfalque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultfalque/subscriptions","organizations_url":"https://api.github.com/users/thibaultfalque/orgs","repos_url":"https://api.github.com/users/thibaultfalque/repos","events_url":"https://api.github.com/users/thibaultfalque/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultfalque/received_events","type":"User","site_admin":false},"assignees":[{"login":"thibaultfalque","id":6603358,"avatar_url":"https://avatars3.githubusercontent.com/u/6603358?v=4","gravatar_id":"","url":"https://api.github.com/users/thibaultfalque","html_url":"https://github.com/thibaultfalque","followers_url":"https://api.github.com/users/thibaultfalque/followers","following_url":"https://api.github.com/users/thibaultfalque/following{/other_user}","gists_url":"https://api.github.com/users/thibaultfalque/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultfalque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultfalque/subscriptions","organizations_url":"https://api.github.com/users/thibaultfalque/orgs","repos_url":"https://api.github.com/users/thibaultfalque/repos","events_url":"https://api.github.com/users/thibaultfalque/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultfalque/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2017-11-27T22:33:58Z","updated_at":"2017-12-01T17:29:56Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nHello,\r\n\r\nI just installed sonarqube (docker) and have not analyzed any projects.\r\nI am able to pull up sonarqube at localhost in my browser.\r\nI can run gometalinter to generate report.xml.\r\nI am not able to successfully run sonar-scanner (see logs below).\r\nI am hoping somebody might be able to point me at some missing configuration/settings I need to make.\r\n\r\nRegards,\r\nJames\r\n### Steps to Reproduce\r\n\r\nRun the following two commands from root of project directory:\r\n1. gometalinter.v1 --fast --checkstyle ./... > report.xml\r\n2. sonar-scanner\r\n\r\n\r\n### Content of your sonar-project.properties\r\n\r\nsonar.projectKey=NearStoreAvailability\r\nsonar.projectName=Near Store Availability\r\nsonar.projectVersion=1.0\r\nsonar.golint.reportPath=report.xml\r\nsonar.coverage.reportPath=coverage.xml\r\nsonar.coverage.dtdVerification=false \r\nsonar.test.reportPath=test.xml\r\nsonar.sources=./\r\n\r\n### Log of sonar-scanner related to the plugin\r\n\r\nINFO: Scanner configuration file: /Users/x3aw/Downloads/sonar-scanner-3.0.3.778-macosx 3/conf/sonar-scanner.properties\r\nINFO: Project root configuration file: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability/sonar-project.properties\r\nINFO: SonarQube Scanner 3.0.3.778\r\nINFO: Java 1.8.0_121 Oracle Corporation (64-bit)\r\nINFO: Mac OS X 10.11.6 x86_64\r\nINFO: User cache: /Users/x3aw/.sonar/cache\r\nINFO: Publish mode\r\nINFO: Load global settings\r\nINFO: Load global settings (done) | time=85ms\r\nINFO: Server id: AV_0ecowXGmkGPLIqUHI\r\nINFO: User cache: /Users/x3aw/.sonar/cache\r\nINFO: Load plugins index\r\nINFO: Load plugins index (done) | time=50ms\r\nINFO: SonarQube server 6.7.0\r\nINFO: Default locale: \"en_US\", source code encoding: \"UTF-8\" (analysis is platform dependent)\r\nINFO: Process project properties\r\nINFO: Load project repositories\r\nINFO: Load project repositories (done) | time=18ms\r\nINFO: Load quality profiles\r\nINFO: Load quality profiles (done) | time=30ms\r\nINFO: Load active rules\r\nINFO: Load active rules (done) | time=1508ms\r\nINFO: Load metrics repository\r\nINFO: Load metrics repository (done) | time=80ms\r\nINFO: Project key: NearStoreAvailability\r\nINFO: -------------  Scan Near Store Availability\r\nINFO: Load server rules\r\nINFO: Load server rules (done) | time=717ms\r\nINFO: Base dir: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability\r\nINFO: Working dir: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability/.scannerwork\r\nINFO: Source paths: .\r\nINFO: Source encoding: UTF-8, default locale: en_US\r\nWARN: Property 'sonar.php.file.suffixes' is not declared as multi-values/property set but was read using 'getStringArray' method. The SonarQube plugin declaring this property should be updated.\r\nINFO: Index files\r\nINFO: 869 files indexed\r\nINFO: Quality profile for go: Golint Rules\r\nINFO: Quality profile for js: Sonar way\r\nINFO: Quality profile for xml: Sonar way\r\nINFO: Sensor SonarJavaXmlFileSensor [java]\r\nINFO: 1 source files to be analyzed\r\nINFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=243ms\r\nINFO: 1/1 source files have been analyzed\r\nINFO: Sensor XML Sensor [xml]\r\nINFO: Sensor XML Sensor [xml] (done) | time=566ms\r\nINFO: Sensor GoMetaLinter issues loader sensor [golang]\r\nINFO: Parsing the file report.xml\r\nINFO: Parsing 'GoMetaLinter' Analysis Results\r\nINFO: ------------------------------------------------------------------------\r\nINFO: EXECUTION FAILURE\r\nINFO: ------------------------------------------------------------------------\r\nINFO: Total time: 6.596s\r\nINFO: Final Memory: 51M/337M\r\nINFO: ------------------------------------------------------------------------\r\nERROR: Error during SonarQube Scanner execution\r\njava.lang.IllegalArgumentException: expected one element but was: <Dockerfile, README.md, adapter/adapter.go, adapter/adapter_test.go, adapter/adapterfakes/fake_adapter.go, ...>\r\n\tat org.sonar.api.batch.fs.internal.DefaultFileSystem.inputFile(DefaultFileSystem.java:135)\r\n\tat fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.getResourceAndSaveIssue(GoLintIssueLoaderSensor.java:144)\r\n\tat fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.parseAndSaveResults(GoLintIssueLoaderSensor.java:137)\r\n\tat fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.execute(GoLintIssueLoaderSensor.java:120)\r\n\tat org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)\r\n\tat org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88)\r\n\tat org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82)\r\n\tat org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68)\r\n\tat org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88)\r\n\tat org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)\r\n\tat org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288)\r\n\tat org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283)\r\n\tat org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)\r\n\tat org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)\r\n\tat org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)\r\n\tat org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)\r\n\tat org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)\r\n\tat org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)\r\n\tat org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)\r\n\tat org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111)\r\n\tat org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)\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:233)\r\n\tat org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)\r\n\tat org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)\r\n\tat org.sonarsource.scanner.cli.Main.execute(Main.java:77)\r\n\tat org.sonarsource.scanner.cli.Main.main(Main.java:61)\r\nERROR: \r\nERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.\r\n\r\n### Versions\r\n\r\nVersions of your sonar installation (server, sonar-scanner), gometalinter, go and OS.\r\nserver: 6.7.0.33306\r\nsonar-scanner: 3.0.3.778-macosx 3\r\ngometalinter: v1\r\ngo: 1.8.3\r\nOS: Mac OS X 10.11.6 x86_64\r\n\r\n### Additional Information\r\n\r\n-"},"comment":{"url":"https://api.github.com/repos/uartois/sonar-golang/issues/comments/348557009","html_url":"https://github.com/uartois/sonar-golang/issues/43#issuecomment-348557009","issue_url":"https://api.github.com/repos/uartois/sonar-golang/issues/43","id":348557009,"user":{"login":"mrbacus","id":7094407,"avatar_url":"https://avatars2.githubusercontent.com/u/7094407?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbacus","html_url":"https://github.com/mrbacus","followers_url":"https://api.github.com/users/mrbacus/followers","following_url":"https://api.github.com/users/mrbacus/following{/other_user}","gists_url":"https://api.github.com/users/mrbacus/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbacus/subscriptions","organizations_url":"https://api.github.com/users/mrbacus/orgs","repos_url":"https://api.github.com/users/mrbacus/repos","events_url":"https://api.github.com/users/mrbacus/events{/privacy}","received_events_url":"https://api.github.com/users/mrbacus/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T17:29:56Z","updated_at":"2017-12-01T17:29:56Z","author_association":"NONE","body":"@thibaultfalque , rc7 is working for me.  Thanks for the great support."}}
{"actor":{"display_login":"mrbacus"}}