java.lang.NullPointerException when in run my custom bamboo plugin again

Abhishek Kumar January 18, 2015

Hi,

I have developed a bamboo plugin, when i run this plugin very first time everything works perfectly fine.

But when i run this plugin again on the second run it fails with below stacktrace:

java.lang.NullPointerException
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.task.QuarantineTaskResultProcessor.recalculateTaskState(QuarantineTaskResultProcessor.java:28)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:230)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
error	19-Jan-2015 14:48:20		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
error	19-Jan-2015 14:48:20		at java.lang.Thread.run(Thread.java:662)

 

Any clue about this?

Thanks,

Abhishek

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
David S. January 19, 2015

Agreed - we need more information. My best guess would be an error in QuarantineTaskResultProcessor.recalculateTaskState. Does the 1st run of the plugin change the running state to finished?

0 votes
Alexej Geldt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2015

provide more information about your plugin. It's impossible to help you just looking at the stacktrace

TAGS
AUG Leaders

Atlassian Community Events