java.lang.NullPointerException

Atlassian JIRA | Brydie McCoy [Atlassian] | 6 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    using private key with passphrase. command has variable substitutions: ln -sfn /home/bamboo/puppet/${bamboo.ReleaseDirectoryPrefix}-${bamboo.repository.revision.number} /home/bamboo/puppet/current command is successfully executed on target host, but job fails. [exit code = null] ---------- LOG FILE RESULTS: 04-Nov-2012 14:15:54 Starting task 'create link to current release' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask' 04-Nov-2012 14:15:55 Executing 'ln -sfn /home/bamboo/puppet/puppet-prod-de086fd971fdbde80aa3a3cb74aa4a45f4001e1a /home/bamboo/puppet/current' 04-Nov-2012 14:15:55 Command: ln -sfn /home/bamboo/puppet/puppet-prod-de086fd971fdbde80aa3a3cb74aa4a45f4001e1a /home/bamboo/puppet/current 04-Nov-2012 14:15:55 Command: stdout = 04-Nov-2012 14:15:55 Command: stderr = 04-Nov-2012 14:15:55 Command: exit = null 04-Nov-2012 14:15:55 'ln -sfn /home/bamboo/puppet/puppet-prod-de086fd971fdbde80aa3a3cb74aa4a45f4001e1a /home/bamboo/puppet/current' was run. 04-Nov-2012 14:15:55 Error occurred while running Task 'create link to current release(4)'. This build will fail. Caused by: 04-Nov-2012 14:15:55 java.lang.NullPointerException 04-Nov-2012 14:15:55 at com.atlassian.bamboo.plugins.scp.SshTask.execute(SshTask.java:104) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:180) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111) 04-Nov-2012 14:15:55 at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) 04-Nov-2012 14:15:55 at java.lang.Thread.run(Thread.java:662)

    Atlassian JIRA | 4 years ago | Ryan Berryman
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.bamboo.fileserver.SystemDirectory.getApplicationHome()
    2. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.fileserver.SystemDirectory.getApplicationHome(SystemDirectory.java:73)
      2. com.atlassian.bamboo.fileserver.SystemDirectory.getCacheDirectory(SystemDirectory.java:94)
      3. com.atlassian.bamboo.plugins.hg.HgRepository.getCacheBaseDirectory(HgRepository.java:166)
      4. com.atlassian.bamboo.plugins.hg.HgRepository.getCacheDirectory(HgRepository.java:161)
      5. com.atlassian.bamboo.plugins.hg.HgRepository.retrieveSourceCode(HgRepository.java:237)
      6. com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.doCall(CheckoutUpdateForBuild.java:136)
      7. com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:41)
      8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
      9. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90)
      10. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
      11. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      11 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame