Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,027
Community Members
 
Community Events
176
Community Groups

I am facing java.lang.NullPointerException exception while coping artifact through SCP task

Starting task 'Copy Artifact to NP2 QAPROD' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
simple	19-Mar-2018 03:33:10	Connecting to dkdl6351.dcsgomni.com on port: 22
error	19-Mar-2018 03:33:10	Error occurred while running Task 'Copy Artifact to NP2 QAPROD(3)' of type com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask.
error	19-Mar-2018 03:33:10	java.lang.NullPointerException
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.plugins.scp.SSHKeyProvider.<init>(SSHKeyProvider.java:26)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:257)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.plugins.scp.ScpTask.run(ScpTask.java:120)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:106)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$1(TaskExecutorImpl.java:281)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:224)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:281)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:203)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:175)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:122)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:117)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error	19-Mar-2018 03:33:10		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error	19-Mar-2018 03:33:10		at java.lang.Thread.run(Thread.java:748)
simple	19-Mar-2018 03:33:10	Finalising the build...
simple	19-Mar-2018 03:33:10	Stopping timer.

3 answers

1 vote

It looks like https://jira.atlassian.com/browse/BAM-19712, which is fixed in next minor release planned for this week

Thanks everyone . I got the solution, there was some problem with private keys. Now its fine 

0 votes
Charlie Misonne Community Leader Mar 19, 2018

Did your plan move to another project recently? Or was it cloned from another one?

I encountered this behavior in the past. The solution was to delete every task related to the artifacts (artifact definition, artifact download, scp task) and recreate them.

See this bug report as well https://jira.atlassian.com/browse/BAM-15033

WithoutUncheckOption.PNGWithUncheckOption.PNGNo, Plan is not moved to another project and there is no clone. Manually i have created this. 
Problem is that whenever I am selecting "Use SSH custom key" option under Authentication type, its asking to browse and upload keys without any uncheck option.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events