[JIRA] (JENKINS-49789) NPE when attempting to parse exception

15 views
Skip to first unread message

chris@orr.me.uk (JIRA)

unread,
Feb 28, 2018, 4:21:02 AM2/28/18
to jenkinsc...@googlegroups.com
Christopher Orr created an issue
 
Jenkins / Bug JENKINS-49789
NPE when attempting to parse exception
Issue Type: Bug Bug
Assignee: Christopher Orr
Components: google-play-android-publisher-plugin
Created: 2018-02-28 09:20
Priority: Major Major
Reporter: Christopher Orr

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
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

chris@orr.me.uk (JIRA)

unread,
Jun 3, 2018, 1:39:02 PM6/3/18
to jenkinsc...@googlegroups.com
Christopher Orr closed an issue as Fixed
 

This change was released in version 1.8 of the plugin.

Change By: Christopher Orr
Status: Resolved Closed

chris@orr.me.uk (JIRA)

unread,
Jun 3, 2018, 1:39:02 PM6/3/18
to jenkinsc...@googlegroups.com
Christopher Orr resolved as Fixed
 

This should be fixed with commit 5b001e9cbe6baa77ff2748b72ca8588f6ec33900.

Change By: Christopher Orr
Status: Open Resolved
Resolution: Fixed

kondratyuk.anton.ig@gmail.com (JIRA)

unread,
Jun 8, 2018, 10:04:03 AM6/8/18
to jenkinsc...@googlegroups.com
Anton Kondratyuk commented on Bug JENKINS-49789
 
Re: NPE when attempting to parse exception

Up!
On new version have the same problem, but another error message Unable to render embedded object: File (Снимок экрана 2018-06-08 в 16.39.27.png) not found.

kondratyuk.anton.ig@gmail.com (JIRA)

unread,
Jun 8, 2018, 10:05:02 AM6/8/18
to jenkinsc...@googlegroups.com
Anton Kondratyuk edited a comment on Bug JENKINS-49789
Up!
On new version have the same problem, but another error message
!Снимок экрана 2018-06-08 в 16  
{code:java}
Assigning APK(s) to alpha release track
. 39 . 27 . png!
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
{code}

kondratyuk.anton.ig@gmail.com (JIRA)

unread,
Jun 8, 2018, 10:08:02 AM6/8/18
to jenkinsc...@googlegroups.com

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 

kondratyuk.anton.ig@gmail.com (JIRA)

unread,
Jun 8, 2018, 10:10:02 AM6/8/18
to jenkinsc...@googlegroups.com
Anton Kondratyuk reopened an issue
 

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

Change By: Anton Kondratyuk
Resolution: Fixed
Status: Closed Reopened

chris@orr.me.uk (JIRA)

unread,
Jun 12, 2018, 4:51:02 AM6/12/18
to jenkinsc...@googlegroups.com
Christopher Orr closed an issue as Fixed
 

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.

Change By: Christopher Orr
Status: Reopened Closed
Resolution: Fixed

kondratyuk.anton.ig@gmail.com (JIRA)

unread,
Jun 12, 2018, 5:07:02 AM6/12/18
to jenkinsc...@googlegroups.com
Anton Kondratyuk reopened an issue
 

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

Change By: Anton Kondratyuk
Resolution: Fixed
Status: Closed Reopened

roufique@rtat.net (JIRA)

unread,
Dec 20, 2018, 12:53:02 AM12/20/18
to jenkinsc...@googlegroups.com
Roufique Hossain updated an issue
Change By: Roufique Hossain
From a comment on the wiki:


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}
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

chris@orr.me.uk (JIRA)

unread,
Jul 17, 2019, 3:45:03 PM7/17/19
to jenkinsc...@googlegroups.com
Christopher Orr closed an issue as Done
Change By: Christopher Orr
Status: Reopened Closed
Resolution: Done

harminder@hike.in (JIRA)

unread,
Sep 13, 2019, 12:24:03 AM9/13/19
to jenkinsc...@googlegroups.com
Harminder Singh reopened an issue
 

We were getting SocketTimeoutExceptions on v1.8. So we upgraded to v2.0 recently. Since then we are getting this NullPointerException very frequently

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)

Change By: Harminder Singh
Resolution: Done
Status: Closed Reopened
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

harminder@hike.in (JIRA)

unread,
Sep 13, 2019, 12:24:04 AM9/13/19
to jenkinsc...@googlegroups.com
Harminder Singh edited a comment on Bug JENKINS-49789
 
Re: NPE when attempting to parse exception
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)

chanukov@gmail.com (JIRA)

unread,
Dec 5, 2019, 9:51:10 PM12/5/19
to jenkinsc...@googlegroups.com

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,

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

chanukov@gmail.com (JIRA)

unread,
Dec 5, 2019, 9:51:11 PM12/5/19
to jenkinsc...@googlegroups.com
Alon Chanukov edited a comment on Bug JENKINS-49789
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,
{code:java}

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
{code}

chanukov@gmail.com (JIRA)

unread,
Dec 5, 2019, 10:02:05 PM12/5/19
to jenkinsc...@googlegroups.com
Alon Chanukov edited a comment on Bug JENKINS-49789
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|https://plugins.jenkins.io/google-play-android-publisher] 2.0 and [Google OAuth Credentials|https://plugins.jenkins.io/google-oauth-plugin] 0.9 on [Jenkins ver. 2.176.4|https://jenkins.io/]
{code:java}
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{code}

chris@orr.me.uk (JIRA)

unread,
Dec 6, 2019, 5:48:03 AM12/6/19
to jenkinsc...@googlegroups.com
Christopher Orr closed an issue as Done
 

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

Change By: Christopher Orr
Status: Reopened Closed
Resolution: Done
Reply all
Reply to author
Forward
0 new messages