[JIRA] (JENKINS-56882) java.lang.NullPointerException after the build successfull

0 views
Skip to first unread message

amruthavarshinidr13@gmail.com (JIRA)

unread,
Apr 4, 2019, 9:12:02 AM4/4/19
to jenkinsc...@googlegroups.com
Amrutha Varshini DR created an issue
 
Jenkins / Bug JENKINS-56882
java.lang.NullPointerException after the build successfull
Issue Type: Bug Bug
Assignee: Joseph Petersen
Attachments: image-2019-04-04-18-41-00-577.png
Components: accurev-plugin, ant-plugin
Created: 2019-04-04 13:11
Environment: Windows server 2016
Priority: Blocker Blocker
Reporter: Amrutha Varshini DR

FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640)
at hudson.model.Run.execute(Run.java:1841)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

amruthavarshinidr13@gmail.com (JIRA)

unread,
Apr 4, 2019, 9:18:02 AM4/4/19
to jenkinsc...@googlegroups.com
Amrutha Varshini DR started work on Bug JENKINS-56882
 
Change By: Amrutha Varshini DR
Status: Open In Progress

michael.l.waldorf@nasa.gov (JIRA)

unread,
Aug 14, 2019, 11:19:02 AM8/14/19
to jenkinsc...@googlegroups.com
Michael Waldorf commented on Bug JENKINS-56882
 
Re: java.lang.NullPointerException after the build successfull

I encountered this issue using Jenkins 2.150.3, Accurev plugin 0.7.20, and Ant plugin 1.9.  The issue traced back in my case to RunWithSCM.super.getCulprits returning null when it shouldn't be able to.  I was able to roll back to 0.7.13 of the Accurev plugin and the issue went away.

djk217@gmail.com (JIRA)

unread,
Jan 14, 2020, 6:33:02 PM1/14/20
to jenkinsc...@googlegroups.com

Hello,

I am running into this problem pretty regularly.  I am using AccuRev plugin 0.7.22 and have been fixing it by rolling back the AccuRev plugin to 0.7.13 and then back to 0.7.22.  It seems to start happening when we edit the view tab for only one of our view/tab of projects.  We have some post-build steps set up, but either it errors out in MailSender (see output1), or if I remove the post build Email Notification step I get a shorter stack (see output2).  Any idea if the problem can be fixed anytime soon?

 

output1:

build status is: 0
[TextFinder plugin] Scanning console output...
[TextFinder plugin] Finished looking for pattern 'EXIT OCCURRED WITH WARNINGS!' in the console output
RTP: Started!
RTP: Done!
[description- setter] Description set: CI:selected, anonymous
ERROR: Build step failed with exception
java.lang.NullPointerException
at hudson.tasks.MailSender.getUserEmailList(MailSender.java:458)
at hudson.tasks.MailSender.createEmptyMail(MailSender.java:389)
at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:204)
at hudson.tasks.MailSender.createMail(MailSender.java:195)
at hudson.tasks.MailSender.run(MailSender.java:112)
at hudson.tasks.Mailer.perform(Mailer.java:173)
at hudson.tasks.Mailer.perform(Mailer.java:136)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1843)


at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Build step 'E- mail Notification' marked build as failure


FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640)

at hudson.model.Run.execute(Run.java:1843)


at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Notifying upstream projects of job completion
Finished: FAILURE

 

Output 2 (without post build mail step configured):


FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640)

at hudson.model.Run.execute(Run.java:1843)


at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Notifying upstream projects of job completion
Finished: FAILURE

 

 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:08:12 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
 
Change By: Joseph Petersen
Assignee: Joseph Petersen (old)
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

arno@90a.nl (JIRA)

unread,
Apr 14, 2020, 11:09:03 AM4/14/20
to jenkinsc...@googlegroups.com
Arno Moonen commented on Bug JENKINS-56882
 
Re: java.lang.NullPointerException after the build successfull

I'm also seeing this. In my particular case, we had a new member join our team and she had never logged in to Jenkins CI yet, but did promote changes in AccuRev using her own account.
This meant that the user was not yet known in Jenkins CI, so I figured this might be related.
I've just asked her to log in to Jenkins CI ones and I'm rerunning the build that failed with this NPE now. Let's hope it succeeds this time. Perhaps that might give some useful information about the root cause.

arno@90a.nl (JIRA)

unread,
Apr 14, 2020, 11:19:02 AM4/14/20
to jenkinsc...@googlegroups.com
Arno Moonen edited a comment on Bug JENKINS-56882
I'm also seeing this. In my particular case, we had a new member join our team and she had never logged in to Jenkins CI yet, but did promote changes in AccuRev using her own account.
This meant that the user was not yet known in Jenkins CI, so I figured this might be related.
I've just asked her to log in to Jenkins CI ones and I'm rerunning the build that failed with this NPE now. Let's hope it succeeds this time. Perhaps that might give some useful information about the root cause.


*Update:* After she's logged in and the user with the same name existed, I'm not getting this exception anymore.

arno@90a.nl (JIRA)

unread,
Apr 14, 2020, 12:08:04 PM4/14/20
to jenkinsc...@googlegroups.com

As mentioned in my comment on GitHub, I think this might be caused by the call to User.getById in AccuRevTransaction::setUser(String author).
The second argument (which indicates if a new user should be created) is set to false. Perhaps it should just be changed to true?

Reply all
Reply to author
Forward
0 new messages