UnsatisfiedDependencyException when build fails on remote agent

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 5.9
    • Affects Version/s: 4.2, 4.4.0
    • Component/s: None
    • None

      I have an atlassian licensed plugin. Licensing and remote agents don't seem to go well together .

      I have removed all license checks from the task run time to avoid problems with components not being available. See https://answers.atlassian.com/questions/45157/unsatisfieddependencyexception. All seems well and the task runs fine on both local and remote. License checking is only done at configuration time which runs on the local server.

      However, if the build needs to report failure on the target system, then after all the task code is complete, Bamboo seems to be trying to access the configuration when it is completing the task. This give a messy failure.

      What is going on? Is there some other techniques that are suppose to be used to do licensing and support remote agents that I am not aware of?

      com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
      ...
      at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
      error	22-Apr-2013 10:43:35		at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)
      error	22-Apr-2013 10:43:35		at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:89)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.plugin.descriptor.TaskModuleDescriptorImpl.getTaskConfigurator(TaskModuleDescriptorImpl.java:147)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.task.QuarantineTaskResultProcessor.recalculateTaskState(QuarantineTaskResultProcessor.java:40)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:186)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:91)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:85)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109)
      error	22-Apr-2013 10:43:35		at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
      error	22-Apr-2013 10:43:35		at java.lang.Thread.run(Thread.java:680)
      

              Assignee:
              Marcin Gardias
              Reporter:
              Bob Swift
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: