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

NPE when attempting to parse exception

    XMLWordPrintable

    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 failed 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 -

          This should be fixed with commit 5b001e9cbe6baa77ff2748b72ca8588f6ec33900.

          Show
          orrc Christopher Orr added a comment - This should be fixed with commit 5b001e9cbe6baa77ff2748b72ca8588f6ec33900.
          Hide
          orrc Christopher Orr added a comment -

          This change was released in version 1.8 of the plugin.

          Show
          orrc Christopher Orr added a comment - This change was released in version 1.8 of the plugin.
          Hide
          merlinkoss Anton Kondratyuk added a comment - - edited

          Up!
          On new version have the same problem, but another error message 

          Assigning APK(s) to alpha release track...
          The alpha release track will now contain APK(s) with version code(s): 190
          
          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
          ERROR: Step ?Upload Android APK to Google Play? failed: APK upload failed
          Finished: FAILURE
          
          Show
          merlinkoss Anton Kondratyuk added a comment - - edited Up! On new version have the same problem, but another error message  Assigning APK(s) to alpha release track... The alpha release track will now contain APK(s) with version code(s): 190 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 ERROR: Step ?Upload Android APK to Google Play? failed: APK upload failed Finished: FAILURE
          Hide
          merlinkoss Anton Kondratyuk added a comment -

          And the same problem not in all
          I have 17 apps in my Jenkins builder - 7 is successfully uploaded to GP
          But 10 is crashed with error 

          Show
          merlinkoss Anton Kondratyuk added a comment - And the same problem not in all I have 17 apps in my Jenkins builder - 7 is successfully uploaded to GP But 10 is crashed with error 
          Hide
          merlinkoss Anton Kondratyuk added a comment -

          Have a problem with new update! 
          See my comments in that task pls!

          Show
          merlinkoss Anton Kondratyuk added a comment - Have a problem with new update!  See my comments in that task pls!
          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

            People

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

              Dates

              • Created:
                Updated: