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

Atlassian JIRA | Stanislaw Osinski | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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