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]

Atlassian JIRA | David O'Flynn [Atlassian] | 9 years ago
  1. 0

    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.

    Atlassian JIRA | 9 years ago | David O'Flynn [Atlassian]
    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]
  2. 0

    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.

    Atlassian JIRA | 9 years ago | David O'Flynn [Atlassian]
    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]
  3. 0

    Devops musings: July 2014

    blogspot.com | 11 months ago
    pringframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7': Invocation of init method failed; nested exception is org.apache.http.conn.HttpHostConnectException: Connection to http://172.17.42.1:2375 refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Devops musings: Running NetflixOSS and Cloud Fabric on Docker

    blogspot.com | 11 months ago
    pringframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7': Invocation of init method failed; nested exception is org.apache.http.conn.HttpHostConnectException: Connection to http://172.17.42.1:2375 refused

    Root Cause Analysis

    1. 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()
    2. quartz
      JobRunShell.initialize
      1. org.quartz.core.JobRunShell.initialize(JobRunShell.java:140)
      1 frame