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

Atlassian JIRA | Tuomo Pelkonen | 1 year ago
  1. 0

    I am creating a Source Code Checkout step using Git repository set to 1.4 branch. When I am setting ${bamboo.repository.git.branch} as Checkout Directory, the builds stop working. If I write "1.4", it will work fine. All this is working on Linux and Windows agents but on OS X it's creating actually "${bamboo.repository.git.branch}" named directory and the build stops when it is trying to clone the repo. {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.BuildContextHelper.rewire(BuildContextHelper.java:40) at com.atlassian.bamboo.v2.build.CommonContextHelper.rewire(CommonContextHelper.java:21) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.setContextToBuild(DefaultBuildAgent.java:374) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:94) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:100) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:30) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.access$000(AbstractBambooModuleDescriptor.java:17) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor$2.call(AbstractBambooModuleDescriptor.java:105) at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(AbstractBambooModuleDescriptor.java:114) at com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:65) at com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:26) at com.atlassian.bamboo.repository.DefaultRepositoryManager.getNewRepositoryInstance(DefaultRepositoryManager.java:69) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:26) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:11) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) {code}

    Atlassian JIRA | 1 year ago | Tuomo Pelkonen
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  2. 0

    I am creating a Source Code Checkout step using Git repository set to 1.4 branch. When I am setting ${bamboo.repository.git.branch} as Checkout Directory, the builds stop working. If I write "1.4", it will work fine. All this is working on Linux and Windows agents but on OS X it's creating actually "${bamboo.repository.git.branch}" named directory and the build stops when it is trying to clone the repo. {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.BuildContextHelper.rewire(BuildContextHelper.java:40) at com.atlassian.bamboo.v2.build.CommonContextHelper.rewire(CommonContextHelper.java:21) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.setContextToBuild(DefaultBuildAgent.java:374) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:94) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:100) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:30) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.access$000(AbstractBambooModuleDescriptor.java:17) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor$2.call(AbstractBambooModuleDescriptor.java:105) at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87) at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(AbstractBambooModuleDescriptor.java:114) at com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:65) at com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:26) at com.atlassian.bamboo.repository.DefaultRepositoryManager.getNewRepositoryInstance(DefaultRepositoryManager.java:69) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:26) at com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:11) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) {code}

    Atlassian JIRA | 1 year ago | Tuomo Pelkonen
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  3. 0

    NPE on Bamboo agent after job is dispatched by gReview

    GitHub | 4 years ago | hakonlo
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 12#7481483

    GitHub | 4 years ago | lukasz357
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  6. 0

    Fails to load all modules

    GitHub | 2 years ago | RobotLimeLtd
    com.atlassian.util.concurrent.LazyReference$InitializationException: 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.plugin.module.ClassPrefixModuleFactory.createModule()
    2. com.atlassian.plugin
      PrefixDelegatingModuleFactory.createModule
      1. com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)
      2. com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:100)
      2 frames
    3. com.atlassian.bamboo
      RepositoryReference.create
      1. com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:30)
      2. com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.access$000(AbstractBambooModuleDescriptor.java:17)
      3. com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor$2.call(AbstractBambooModuleDescriptor.java:105)
      4. com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87)
      5. com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(AbstractBambooModuleDescriptor.java:114)
      6. com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:65)
      7. com.atlassian.bamboo.plugin.descriptor.RepositoryModuleDescriptorImpl.getModule(RepositoryModuleDescriptorImpl.java:26)
      8. com.atlassian.bamboo.repository.DefaultRepositoryManager.getNewRepositoryInstance(DefaultRepositoryManager.java:69)
      9. com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:26)
      10. com.atlassian.bamboo.repository.RepositoryReference.create(RepositoryReference.java:11)
      10 frames
    4. com.atlassian.util
      LazyReference.getInterruptibly
      1. com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
      2. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
      2 frames