com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

Atlassian JIRA | Stanislaw Osinski | 3 years ago
  1. 0

    When our deployment project runs on a remote agent, it fails with a NPE: {code} com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.repository.RepositoryDataImpl.getRepository(RepositoryDataImpl.java:136) at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareWorkingDirectory(InitializeBuild.java:101) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:82) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:53) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at com.atlassian.bamboo.credentials.CredentialsManagerImpl.getCredentials(CredentialsManagerImpl.java:46) at com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:64) at com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:59) at com.google.common.collect.Iterators$8.next(Iterators.java:782) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) at com.atlassian.bamboo.v2.build.agent.remote.RemoteCredentialsAccessor.getCredentials(RemoteCredentialsAccessor.java:26) at com.atlassian.bamboo.plugins.git.GitRepository.populateFromConfig(GitRepository.java:646) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:28) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:10) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 11 more {code} The same deployment runs fine on a local agent. The deployment tasks include code checkout from a shared repository based on shared credentials. Replacing the VCS task with "manual" checkout using git command solves the problem.

    Atlassian JIRA | 3 years ago | Stanislaw Osinski
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  2. 0

    When our deployment project runs on a remote agent, it fails with a NPE: {code} com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.repository.RepositoryDataImpl.getRepository(RepositoryDataImpl.java:136) at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareWorkingDirectory(InitializeBuild.java:101) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:82) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:53) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at com.atlassian.bamboo.credentials.CredentialsManagerImpl.getCredentials(CredentialsManagerImpl.java:46) at com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:64) at com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:59) at com.google.common.collect.Iterators$8.next(Iterators.java:782) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) at com.atlassian.bamboo.v2.build.agent.remote.RemoteCredentialsAccessor.getCredentials(RemoteCredentialsAccessor.java:26) at com.atlassian.bamboo.plugins.git.GitRepository.populateFromConfig(GitRepository.java:646) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:28) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:10) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 11 more {code} The same deployment runs fine on a local agent. The deployment tasks include code checkout from a shared repository based on shared credentials. Replacing the VCS task with "manual" checkout using git command solves the problem.

    Atlassian JIRA | 3 years ago | Stanislaw Osinski
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.credentials.CredentialsManagerImpl.getCredentials()
    2. com.atlassian.bamboo
      Credentials$2.apply
      1. com.atlassian.bamboo.credentials.CredentialsManagerImpl.getCredentials(CredentialsManagerImpl.java:46)
      2. com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:64)
      3. com.atlassian.bamboo.credentials.Credentials$2.apply(Credentials.java:59)
      3 frames
    3. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.Iterators$8.next(Iterators.java:782)
      2. com.google.common.collect.Iterators$7.computeNext(Iterators.java:644)
      3. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
      4. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
      4 frames
    4. com.atlassian.bamboo
      RepositoryReference.create
      1. com.atlassian.bamboo.v2.build.agent.remote.RemoteCredentialsAccessor.getCredentials(RemoteCredentialsAccessor.java:26)
      2. com.atlassian.bamboo.plugins.git.GitRepository.populateFromConfig(GitRepository.java:646)
      3. com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:28)
      4. com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:10)
      4 frames
    5. com.atlassian.util
      LazyReference.get
      1. com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
      2. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
      3. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      3 frames
    6. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.repository.RepositoryDataImpl.getRepository(RepositoryDataImpl.java:136)
      2. com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124)
      3. com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareWorkingDirectory(InitializeBuild.java:101)
      4. com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:82)
      5. com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:53)
      6. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181)
      7. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101)
      8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
      9. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55)
      9 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame