java.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]
    java.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]
    java.lang.NullPointerException
  3. 0

    Unknown Error

    GitHub | 3 years ago | Gitweazle
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException with incorrect conkeyref

    GitHub | 3 years ago | raducoravu
    java.lang.NullPointerException

  1. ajinkya_w 1 times, last 2 months ago
  2. emmanuelstroem 1 times, last 4 months ago
  3. adawolfs 31 times, last 2 months ago
  4. Diogo Jaym 6 times, last 5 months ago
  5. Bardh 7 times, last 6 months ago
6 more registered users
20 unregistered visitors
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 java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(Unknown Source)
    1 frame
  3. com.atlassian.bamboo
    SystemInfo.<init>
    1. com.atlassian.bamboo.configuration.SystemInfo.<init>(SystemInfo.java:122)
    1 frame
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  5. Spring Beans
    AbstractAutowireCapableBeanFactory.autowireBeanProperties
    1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
    3. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:268)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:876)
    12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:274)
    13 frames
  6. com.atlassian.spring
    ContainerManager.autowireComponent
    1. com.atlassian.spring.container.SpringContainerContext.autowireComponent(SpringContainerContext.java:102)
    2. com.atlassian.spring.container.ContainerManager.autowireComponent(ContainerManager.java:41)
    2 frames
  7. com.atlassian.bamboo
    AutowiringJobFactory.newJob
    1. com.atlassian.bamboo.quartz.AutowiringJobFactory.newJob(AutowiringJobFactory.java:25)
    1 frame
  8. quartz
    JobRunShell.initialize
    1. org.quartz.core.JobRunShell.initialize(JobRunShell.java:133)
    1 frame