payload: {"action":"created","issue":{"url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/168","repository_url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin","labels_url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/168/comments","events_url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/168/events","html_url":"https://github.com/gabrie-allaigre/sonar-gitlab-plugin/issues/168","id":355498554,"node_id":"MDU6SXNzdWUzNTU0OTg1NTQ=","number":168,"title":"Fail with NullPointerException when try to operate gitlab","user":{"login":"wangmoApfel","id":20989976,"node_id":"MDQ6VXNlcjIwOTg5OTc2","avatar_url":"https://avatars1.githubusercontent.com/u/20989976?v=4","gravatar_id":"","url":"https://api.github.com/users/wangmoApfel","html_url":"https://github.com/wangmoApfel","followers_url":"https://api.github.com/users/wangmoApfel/followers","following_url":"https://api.github.com/users/wangmoApfel/following{/other_user}","gists_url":"https://api.github.com/users/wangmoApfel/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmoApfel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmoApfel/subscriptions","organizations_url":"https://api.github.com/users/wangmoApfel/orgs","repos_url":"https://api.github.com/users/wangmoApfel/repos","events_url":"https://api.github.com/users/wangmoApfel/events{/privacy}","received_events_url":"https://api.github.com/users/wangmoApfel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":39,"created_at":"2018-08-30T09:22:51Z","updated_at":"2019-02-26T10:13:10Z","closed_at":null,"author_association":"NONE","body":"env:\r\ngitlab: GitLab Community Edition 10.5.6 4b41d48 \r\nsonarqube: 7.2.1 (7.3 also same)\r\nsonar-gitlab-plugin: 4.0.0-rc1 (3.0.1 also same)\r\n\r\ndesc:\r\nalways get following error:\r\n`[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.1.1168:sonar (default-cli) on project sdkdev: null: MojoExecutionException: NullPointerException -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.1.1168:sonar (default-cli) on project sdkdev: null`\r\n\r\nmy .gitlab-ci.yml is:\r\n`\r\nbefore_script:\r\n  - JAVA_HOME=/usr/java/jdk1.8.0_66\r\n  - MAVEN_HOME=/mfs_ead/maven/apache-maven-3.5.4\r\n  - echo $JAVA_HOME\r\n  - echo $MAVEN_HOME\r\n  - export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH\r\n  - export CLASSPATH=.:$JAVA_HOME/lib/*\r\n  - mvn clean\r\n\r\nunit_test:\r\n  tags:\r\n    - test\r\n  script:\r\n    - mvn test\r\n    - cat target/site/jacoco/index.html\r\n  coverage: '/Total.*?([0-9]{1,3})%/'\r\n\r\nsonar_preview:\r\n  stage: test\r\n  script:\r\n    - mvn --batch-mode verify sonar:sonar -Dsonar.host.url=http://nc110:19000 -Dsonar.login=33171bc93106f8cda58182f9fb8c55b343969501 -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -X\r\n  except:\r\n    - master\r\n    - tags\r\n  tags:\r\n    - test\r\n`\r\n\r\nERROR stack is this:\r\n`[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.1.1168:sonar (default-cli) on project sdkdev: null: MojoExecutionException: NullPointerException -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.1.1168:sonar (default-cli) on project sdkdev: null\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)\r\n    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)\r\n    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)\r\n    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)\r\n    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke (Method.java:497)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.MojoExecutionException\r\n    at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:67)\r\n    at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:104)\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)\r\n    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)\r\n    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)\r\n    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)\r\n    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke (Method.java:497)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)\r\nCaused by: java.lang.NullPointerException\r\n    at com.talanlabs.sonar.plugins.gitlab.GitLabApiV4Wrapper.createOrUpdateSonarQubeStatus (GitLabApiV4Wrapper.java:211)\r\n    at com.talanlabs.sonar.plugins.gitlab.CommitFacade.createOrUpdateSonarQubeStatus (CommitFacade.java:122)\r\n    at com.talanlabs.sonar.plugins.gitlab.CommitPublishPostJob.execute (CommitPublishPostJob.java:112)\r\n    at org.sonar.scanner.postjob.PostJobWrapper.executeOn (PostJobWrapper.java:58)\r\n    at org.sonar.scanner.phases.PostJobsExecutor.execute (PostJobsExecutor.java:66)\r\n    at org.sonar.scanner.phases.PostJobsExecutor.execute (PostJobsExecutor.java:55)\r\n    at org.sonar.scanner.phases.AbstractPhaseExecutor.execute (AbstractPhaseExecutor.java:94)\r\n    at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart (ModuleScanContainer.java:182)\r\n    at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)\r\n    at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:122)\r\n    at org.sonar.scanner.scan.ProjectScanContainer.scan (ProjectScanContainer.java:312)\r\n    at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively (ProjectScanContainer.java:307)\r\n    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart (ProjectScanContainer.java:281)\r\n    at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)\r\n    at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:122)\r\n    at org.sonar.scanner.task.ScanTask.execute (ScanTask.java:48)\r\n    at org.sonar.scanner.task.TaskContainer.doAfterStart (TaskContainer.java:81)\r\n    at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)\r\n    at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:122)\r\n    at org.sonar.scanner.bootstrap.GlobalContainer.executeTask (GlobalContainer.java:132)\r\n    at org.sonar.batch.bootstrapper.Batch.doExecuteTask (Batch.java:116)\r\n    at org.sonar.batch.bootstrapper.Batch.execute (Batch.java:71)\r\n    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (BatchIsolatedLauncher.java:46)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke (Method.java:497)\r\n    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (IsolatedLauncherProxy.java:60)\r\n    at com.sun.proxy.$Proxy40.execute (Unknown Source)\r\n    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute (EmbeddedScanner.java:171)\r\n    at org.sonarsource.scanner.api.EmbeddedScanner.execute (EmbeddedScanner.java:128)\r\n    at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:65)\r\n    at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:104)\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)\r\n    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)\r\n    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)\r\n    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)\r\n    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)\r\n    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke (Method.java:497)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)\r\n[ERROR] \r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\r\nERROR: Job failed: exit status 1`\r\n\r\nI also tried lower version sonarqube and sonar-gitlab-plugin, that combination complains gitlab API 503, so I think that version does not match my current gitlab version. \r\n\r\nThank you very much!"},"comment":{"url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/comments/467379680","html_url":"https://github.com/gabrie-allaigre/sonar-gitlab-plugin/issues/168#issuecomment-467379680","issue_url":"https://api.github.com/repos/gabrie-allaigre/sonar-gitlab-plugin/issues/168","id":467379680,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NzM3OTY4MA==","user":{"login":"idelin","id":23070481,"node_id":"MDQ6VXNlcjIzMDcwNDgx","avatar_url":"https://avatars1.githubusercontent.com/u/23070481?v=4","gravatar_id":"","url":"https://api.github.com/users/idelin","html_url":"https://github.com/idelin","followers_url":"https://api.github.com/users/idelin/followers","following_url":"https://api.github.com/users/idelin/following{/other_user}","gists_url":"https://api.github.com/users/idelin/gists{/gist_id}","starred_url":"https://api.github.com/users/idelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idelin/subscriptions","organizations_url":"https://api.github.com/users/idelin/orgs","repos_url":"https://api.github.com/users/idelin/repos","events_url":"https://api.github.com/users/idelin/events{/privacy}","received_events_url":"https://api.github.com/users/idelin/received_events","type":"User","site_admin":false},"created_at":"2019-02-26T10:13:10Z","updated_at":"2019-02-26T10:13:10Z","author_association":"NONE","body":"Same issue.\r\nBut my situation is because the gitlab service address changes, so I can correct the gitlab service address. \r\n![image](https://user-images.githubusercontent.com/23070481/53405095-0b8a6980-39f2-11e9-90d1-8a457f7c151a.png)\r\nOr set -Dsonar.gitlab.url=Real gitlab service"}}
other: {"actor":{"display_login":"idelin"}}