java.lang.NullPointerException

Atlassian JIRA | Zed Yap [Atlassian] | 5 years ago
  1. 0

    Currently, the Destination directory option in Artifact Dependency can be left as empty. This does not work when using Oracle. Producing artifacts works well, but when a job from a later stage tries to use the artifacts and error occurs. As Oracle cannot handle storing empty strings, the directory is stored as NULL instead. It looks like Bamboo fails to deal with NULLs for a destination directory when retrieving and using the value: {code} java.lang.NullPointerException at java.io.File.<init>(File.java:305) at com.atlassian.bamboo.build.artifact.LocalArtifactManager.retrieve(LocalArtifactManager.java:74) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.prepareArtifacts(PrepareBuildTask.java:100) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:50) {code} The problem happens during execution of the second stage, even though no actual build action is being performed. The bamboo-home/artifacts directory is present, and the artifact is created correctly. If the directory the artifact should be referenced from in stage 2 is changed, another nullpointerexception happens: {code} 2011-08-29 17:14:30,361 ERROR [qtp470279362-11] [FiveOhOh] 500 Exception was thrown. java.lang.NullPointerException at com.atlassian.bamboo.ww2.actions.build.admin.config.ConfigureArtifactSubscription.isSubscriptionUnique(ConfigureArtifactSubscription.java:158) at com.atlassian.bamboo.ww2.actions.build.admin.config.ConfigureArtifactSubscription.validateSubscription(ConfigureArtifactSubscription.java:147) {code}

    Atlassian JIRA | 5 years ago | Zed Yap [Atlassian]
    java.lang.NullPointerException
  2. 0

    Currently, the Destination directory option in Artifact Dependency can be left as empty. This does not work when using Oracle. Producing artifacts works well, but when a job from a later stage tries to use the artifacts and error occurs. As Oracle cannot handle storing empty strings, the directory is stored as NULL instead. It looks like Bamboo fails to deal with NULLs for a destination directory when retrieving and using the value: {code} java.lang.NullPointerException at java.io.File.<init>(File.java:305) at com.atlassian.bamboo.build.artifact.LocalArtifactManager.retrieve(LocalArtifactManager.java:74) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.prepareArtifacts(PrepareBuildTask.java:100) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:50) {code} The problem happens during execution of the second stage, even though no actual build action is being performed. The bamboo-home/artifacts directory is present, and the artifact is created correctly. If the directory the artifact should be referenced from in stage 2 is changed, another nullpointerexception happens: {code} 2011-08-29 17:14:30,361 ERROR [qtp470279362-11] [FiveOhOh] 500 Exception was thrown. java.lang.NullPointerException at com.atlassian.bamboo.ww2.actions.build.admin.config.ConfigureArtifactSubscription.isSubscriptionUnique(ConfigureArtifactSubscription.java:158) at com.atlassian.bamboo.ww2.actions.build.admin.config.ConfigureArtifactSubscription.validateSubscription(ConfigureArtifactSubscription.java:147) {code}

    Atlassian JIRA | 5 years ago | Zed Yap [Atlassian]
    java.lang.NullPointerException
  3. 0

    [1.2.4] Blog : NullPointerException on File init

    Google Groups | 5 years ago | Neoh59
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [izpack-user] Null pointer exception with loose pack

    Google Groups | 6 years ago | Syf89723
    java.lang.NullPointerException

  1. ajinkya_w 1 times, last 2 months ago
  2. emmanuelstroem 1 times, last 4 months ago
  3. adawolfs 31 times, last 1 month ago
  4. Diogo Jaym 6 times, last 5 months ago
  5. Bardh 7 times, last 6 months ago
6 more registered users
20 unregistered visitors
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 java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(File.java:305)
    1 frame
  3. com.atlassian.bamboo
    PrepareBuildTask.call
    1. com.atlassian.bamboo.build.artifact.LocalArtifactManager.retrieve(LocalArtifactManager.java:74)
    2. com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.prepareArtifacts(PrepareBuildTask.java:100)
    3. com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:50)
    3 frames