Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-2309

NullPointerException in AgentHeartBeat on startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.0 beta 8, 2.0
    • None
    • Agents
    • None
    • XP SP2

      java version "1.6.0_03"
      Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
      Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

    Description

      Apologies if this is a duplicate, but I couldn't find it in JAC.

      First start of an agent using the command-line:
      C:\bamboo-remote-agent_panda>java -Dbamboo-home=.\bamboo-home -jar bamboo-agent-2.0-SNAPSHOT.jar http://panda.sydney.atlassian.com:8080/bamboo/agentServer/

      gives the following output:

      2008-02-29 11:07:55,796 ERROR [QuartzScheduler_QuartzSchedulerThread] [ErrorLogg
      er] An error occured instantiating job to be executed. job= 'AgentHeartBeat.Agen
      tHeartBeat'
      org.quartz.SchedulerException: Problem instantiating class 'com.atlassian.bamboo
      .v2.build.agent.remote.heartbeat.AgentHeartBeatJob' [See nested exception: org.s
      pringframework.beans.factory.BeanCreationException: Error creating bean with nam
      e 'systemInfo' defined in class path resource [applicationContextRemoteAgent.xml
      ]: Instantiation of bean failed; nested exception is org.springframework.beans.B
      eanInstantiationException: Could not instantiate bean class [com.atlassian.bambo
      o.configuration.SystemInfo]: Constructor threw exception; nested exception is ja
      va.lang.NullPointerException]
      at org.quartz.core.JobRunShell.initialize(JobRunShell.java:140)
      at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
      353)

      • Nested Exception (Underlying Cause) ---------------
        org.springframework.beans.factory.BeanCreationException: Error creating bean wit
        h name 'systemInfo' defined in class path resource [applicationContextRemoteAgen
        t.xml]: Instantiation of bean failed; nested exception is org.springframework.be
        ans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.
        bamboo.configuration.SystemInfo]: Constructor threw exception; nested exception
        is java.lang.NullPointerException
        Caused by:
        org.springframework.beans.BeanInstantiationException: Could not instantiate bean
        class [com.atlassian.bamboo.configuration.SystemInfo]: Constructor threw except
        ion; nested exception is java.lang.NullPointerException
        Caused by:
        java.lang.NullPointerException
        at java.io.File.<init>(Unknown Source)
        at com.atlassian.bamboo.configuration.SystemInfo.<init>(SystemInfo.java:
        122)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
      rce)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:8
      5)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy
      .instantiate(SimpleInstantiationStrategy.java:87)
      at org.springframework.beans.factory.support.ConstructorResolver.autowir
      eConstructor(ConstructorResolver.java:186)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.createBean(AbstractAutowireCapableBeanFactory.java:386)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:268)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:227)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:227)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:160)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:876)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:274)
      at com.atlassian.spring.container.SpringContainerContext.autowireCompone
      nt(SpringContainerContext.java:102)
      at com.atlassian.spring.container.ContainerManager.autowireComponent(Con
      tainerManager.java:41)
      at com.atlassian.bamboo.quartz.AutowiringJobFactory.newJob(AutowiringJob
      Factory.java:25)
      at org.quartz.core.JobRunShell.initialize(JobRunShell.java:133)
      at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
      353)
      2008-02-29 11:07:55,796 INFO [QuartzScheduler_QuartzSchedulerThread] [RAMJobStor
      e] All triggers of Job AgentHeartBeat.AgentHeartBeat set to ERROR state.

      Attachments

        Activity

          People

            edwin@atlassian.com edwin
            doflynn David O'Flynn [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: