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

          orrc Christopher Orr created issue -
          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.
          orrc Christopher Orr made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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.
          orrc Christopher Orr made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          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 
          merlinkoss Anton Kondratyuk made changes -
          Rank Ranked higher
          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!
          merlinkoss Anton Kondratyuk made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          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.
          orrc Christopher Orr made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          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
          merlinkoss Anton Kondratyuk made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          roufique2 Roufique Hossain made changes -
          Description From a comment on the wiki:

          https://wiki.jenkins.io/display/JENKINS/Google+Play+Android+Publisher+Plugin?focusedCommentId=138450677#comment-138450677
          {code:java}
          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{code}
          From a comment on the wiki:

          [https://wiki.jenkins.io/display/JENKINS/Google+Play+Android+Publisher+Plugin?focusedCommentId=138450677#comment-138450677]
          {code:java}
          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{code}

            People

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

              Dates

              • Created:
                Updated: