Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49789

NPE when attempting to parse exception

    Details

    • Similar Issues:

      Description

      From a comment on the wiki:

      https://wiki.jenkins.io/display/JENKINS/Google+Play+Android+Publisher+Plugin?focusedCommentId=138450677#comment-138450677

      ERROR: Build step pass with exception
      java.lang.NullPointerException
      at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:97)
      at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:383)
      at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:198)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1753)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Upload Android APK to Google Play' marked build as failure

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Please don't re-open unrelated tickets.

          Applying changes to Google Play...
          Upload failed: Unknown error: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized

          • No changes have been applied to the Google Play account

          This error message most likely means that your Google Play service account doesn't have the correct permissions to publish alpha/beta APKs.

          Show
          orrc Christopher Orr added a comment - Please don't re-open unrelated tickets. Applying changes to Google Play... Upload failed: Unknown error: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized No changes have been applied to the Google Play account This error message most likely means that your Google Play service account doesn't have the correct permissions to publish alpha/beta APKs.
          Hide
          merlinkoss Anton Kondratyuk added a comment -

          Im already have an permission for upload app in google play bec:
          I have 19 app in jenkins
          Some of him download successfully with that creditionals, but some is failed with that error message

          Show
          merlinkoss Anton Kondratyuk added a comment - Im already have an permission for upload app in google play bec: I have 19 app in jenkins Some of him download successfully with that creditionals, but some is failed with that error message
          Hide
          harminder020 Harminder Singh added a comment - - edited

          We were getting SocketTimeoutExceptions on v1.8. So we upgraded to v2.0 recently. Since then we are getting this NullPointerException very frequently (4/5 times)

          It occurs randomly at any point during upload. Sometimes after 1 build is uploaded successfully, sometimes after 5 builds uploaded successfully and so on.
          ERROR: [flexible-publish] Upload Android APK to Google Play (org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher@4853b58d) aborted due to exception
          java.lang.NullPointerException
          at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:102)
          at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:379)
          at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:194)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
          at org.jenkins_ci.plugins.flexible_publish.builder.FailAtEndBuilder.perform(FailAtEndBuilder.java:104)
          at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
          at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
          at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
          at org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85)
          at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
          at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)

          Show
          harminder020 Harminder Singh added a comment - - edited We were getting SocketTimeoutExceptions on v1.8. So we upgraded to v2.0 recently. Since then we are getting this NullPointerException very frequently (4/5 times) It occurs randomly at any point during upload. Sometimes after 1 build is uploaded successfully, sometimes after 5 builds uploaded successfully and so on. ERROR: [flexible-publish] Upload Android APK to Google Play (org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher@4853b58d) aborted due to exception java.lang.NullPointerException at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:102) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:379) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:194) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at org.jenkins_ci.plugins.flexible_publish.builder.FailAtEndBuilder.perform(FailAtEndBuilder.java:104) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85) at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206) at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
          Hide
          chanukov Alon Chanukov added a comment - - edited

          We have had this happen 3 times in a row today(we placed 3 retrys around the stage), once yesterday and once about a week ago,
          We are using Google Play Android Publisher 2.0 and Google OAuth Credentials 0.9 on Jenkins ver. 2.176.4

          18:01:45 Uploading 2 APK(s) with application ID: com.****.internal 
          18:01:45 18:01:45 APK file: app-internal-arm64-v8a-release.apk 
          18:01:45 SHA-1 hash:************************* 
          18:01:45 versionCode: 30010232 
          18:01:45 minSdkVersion: 21
          18:02:07 [Pipeline] } 
          18:02:07 [Pipeline] // script 
          18:02:07 [Pipeline] }
          18:02:07 ERROR: Execution failed
          18:02:07 java.lang.NullPointerException 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:102) 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:379) 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:194) 18:02:07 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) 18:02:07 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) 18:02:07 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 18:02:07 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 18:02:07 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 18:02:07 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 18:02:07 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 18:02:07 at java.lang.Thread.run(Thread.java:748) 18:02:07 Retrying
          Show
          chanukov Alon Chanukov added a comment - - edited We have had this happen 3 times in a row today(we placed 3 retrys around the stage), once yesterday and once about a week ago, We are using  Google Play Android Publisher  2.0 and  Google OAuth Credentials  0.9 on  Jenkins ver. 2.176.4 18:01:45 Uploading 2 APK(s) with application ID: com.****.internal 18:01:45 18:01:45 APK file: app-internal-arm64-v8a-release.apk 18:01:45 SHA-1 hash:************************* 18:01:45 versionCode: 30010232 18:01:45 minSdkVersion: 21 18:02:07 [Pipeline] } 18:02:07 [Pipeline] // script 18:02:07 [Pipeline] } 18:02:07 ERROR: Execution failed 18:02:07 java.lang.NullPointerException 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:102) 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:379) 18:02:07 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:194) 18:02:07 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) 18:02:07 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) 18:02:07 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 18:02:07 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 18:02:07 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 18:02:07 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 18:02:07 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 18:02:07 at java.lang. Thread .run( Thread .java:748) 18:02:07 Retrying
          Hide
          orrc Christopher Orr added a comment -

          Alon Chanukov: Can you please try with the latest version of the plugin, and let us know if it still happens?

          Show
          orrc Christopher Orr added a comment - Alon Chanukov : Can you please try with the latest version of the plugin, and let us know if it still happens?

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              orrc Christopher Orr
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: