java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by David O'Flynn [Atlassian],
  • 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.
    via by David O'Flynn [Atlassian],
  • Unknown Error
    via GitHub by Gitweazle
    ,
  • Can't enter/create maps
    via GitHub by Whainte
    ,
  • CStub Import Crash
    via GitHub by danielstieger
    ,
    • 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 Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.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.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:876) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:274) at com.atlassian.spring.container.SpringContainerContext.autowireComponent(SpringContainerContext.java:102) at com.atlassian.spring.container.ContainerManager.autowireComponent(ContainerManager.java:41) at com.atlassian.bamboo.quartz.AutowiringJobFactory.newJob(AutowiringJobFactory.java:25) at org.quartz.core.JobRunShell.initialize(JobRunShell.java:133)

    Users with the same issue

    Axelo
    Axelo6 times, last one,
    Aravind
    Aravind2 times, last one,
    jf-ast
    jf-ast8 times, last one,
    Dunmer
    Dunmer1 times, last one,
    linxiaolong
    linxiaolong6 times, last one,
    33 more bugmates