java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null

Atlassian JIRA | Adrian Hempel [Atlassian] | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We need to fix this to maintain backward compatibility for plug-ins expecting VCS metadata in custom build info. Also, log states that "Building will abort...", but building continues. (Tracked as BAM-2122). {noformat:title:Remote Agent Log} 2008-01-22 17:12:06,715 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildAgentControllerImpl] Agent 'Remote Agent on scharers.sydney.atlassian.com' ready to take build from queue... 2008-01-22 17:12:06,716 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [JmsSelectorUtils] allowableSelector: allowableAgents LIKE '%[491521]%' 2008-01-22 17:13:40,636 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AgentQueueAccessorImpl] TEST-DEF-16 taken from queue. 2008-01-22 17:13:41,064 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildAgentControllerImpl] Build TEST-DEF-16 started building on agent Remote Agent on scharers.sydney.atlassian.com 2008-01-22 17:13:41,064 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild 2008-01-22 17:13:41,174 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [CheckoutUpdateForBuild] Updating source code to revision: 51905 2008-01-22 17:13:41,187 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [SvnRepository] Source found at '/Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF'. Updating source... 2008-01-22 17:13:46,927 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [UpdateEventHandler] 2008-01-22 17:13:47,009 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [UpdateEventHandler] At revision 51905 2008-01-22 17:13:48,108 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [CheckoutUpdateForBuild] Updated source code to revision: 51905 2008-01-22 17:13:48,108 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask 2008-01-22 17:13:48,251 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Executing build TEST-DEF-16 2008-01-22 17:13:48,414 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Runnning pre-build action: com.atlassian.bamboo.vcsversion.VCSVersionReader@d6cc5e 2008-01-22 17:13:48,481 WARN [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Exception occurred while executing custom pre-build action 'com.atlassian.bamboo.vcsversion.VCSVersionReader@d6cc5e'. Building will abort... java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null at com.atlassian.bamboo.vcsversion.VCSVersionReader.call(VCSVersionReader.java) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:53) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:144) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.performBuild(BuildAgentControllerImpl.java:63) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:85) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:613) 2008-01-22 17:13:48,482 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask 2008-01-22 17:13:48,701 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AbstractBuilder] Starting to build 'Test - Default'<br /> ... running command line: /opt/maven-2/bin/mvn clean test clover:instrument clover:clover<br /> ... in : /Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF<br /> ... using java: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home<br /> ... using environment variables: 2008-01-22 17:13:52,724 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Clover Version 1.3.14, built on August 01 2007 2008-01-22 17:13:52,731 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] loaded from: /Users/ahempel/.m2/repository/com/cenqua/clover/clover/1.3.14/clover-1.3.14.jar 2008-01-22 17:13:52,750 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] 30 Seat Team License registered to mike@atlassian.com, Atlassian 2008-01-22 17:13:52,757 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] No coverage database '/Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF/target/clover/clover.db' found. Creating a fresh one. 2008-01-22 17:13:52,765 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Processing files at 1.4 source level. 2008-01-22 17:13:52,855 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Instrumented 1 source files. 2008-01-22 17:13:55,300 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AbstractBuilder] Build process for 'Test - Default' returned with return code = 0 2008-01-22 17:13:56,062 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' 2008-01-22 17:13:56,562 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2008-01-22 17:13:56,643 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildArtifactPostProcessor] Copying the build artifacts for build:TEST-DEF-16 2008-01-22 17:15:01,029 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [RemoteBuildResultProcessor] Build TEST-DEF-16 completed on Bamboo agent. Sending results to server. {noformat}

    Atlassian JIRA | 9 years ago | Adrian Hempel [Atlassian]
    java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null
  2. 0

    We need to fix this to maintain backward compatibility for plug-ins expecting VCS metadata in custom build info. Also, log states that "Building will abort...", but building continues. (Tracked as BAM-2122). {noformat:title:Remote Agent Log} 2008-01-22 17:12:06,715 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildAgentControllerImpl] Agent 'Remote Agent on scharers.sydney.atlassian.com' ready to take build from queue... 2008-01-22 17:12:06,716 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [JmsSelectorUtils] allowableSelector: allowableAgents LIKE '%[491521]%' 2008-01-22 17:13:40,636 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AgentQueueAccessorImpl] TEST-DEF-16 taken from queue. 2008-01-22 17:13:41,064 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildAgentControllerImpl] Build TEST-DEF-16 started building on agent Remote Agent on scharers.sydney.atlassian.com 2008-01-22 17:13:41,064 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild 2008-01-22 17:13:41,174 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [CheckoutUpdateForBuild] Updating source code to revision: 51905 2008-01-22 17:13:41,187 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [SvnRepository] Source found at '/Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF'. Updating source... 2008-01-22 17:13:46,927 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [UpdateEventHandler] 2008-01-22 17:13:47,009 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [UpdateEventHandler] At revision 51905 2008-01-22 17:13:48,108 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [CheckoutUpdateForBuild] Updated source code to revision: 51905 2008-01-22 17:13:48,108 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask 2008-01-22 17:13:48,251 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Executing build TEST-DEF-16 2008-01-22 17:13:48,414 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Runnning pre-build action: com.atlassian.bamboo.vcsversion.VCSVersionReader@d6cc5e 2008-01-22 17:13:48,481 WARN [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [PrepareBuildTask] Exception occurred while executing custom pre-build action 'com.atlassian.bamboo.vcsversion.VCSVersionReader@d6cc5e'. Building will abort... java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null at com.atlassian.bamboo.vcsversion.VCSVersionReader.call(VCSVersionReader.java) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:53) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:144) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.performBuild(BuildAgentControllerImpl.java:63) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:85) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:613) 2008-01-22 17:13:48,482 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [DefaultBuildAgent] Running build task: com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask 2008-01-22 17:13:48,701 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AbstractBuilder] Starting to build 'Test - Default'<br /> ... running command line: /opt/maven-2/bin/mvn clean test clover:instrument clover:clover<br /> ... in : /Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF<br /> ... using java: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home<br /> ... using environment variables: 2008-01-22 17:13:52,724 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Clover Version 1.3.14, built on August 01 2007 2008-01-22 17:13:52,731 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] loaded from: /Users/ahempel/.m2/repository/com/cenqua/clover/clover/1.3.14/clover-1.3.14.jar 2008-01-22 17:13:52,750 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] 30 Seat Team License registered to mike@atlassian.com, Atlassian 2008-01-22 17:13:52,757 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] No coverage database '/Users/ahempel/bamboo-homes/agent/xml-data/build-dir/TEST-DEF/target/clover/clover.db' found. Creating a fresh one. 2008-01-22 17:13:52,765 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Processing files at 1.4 source level. 2008-01-22 17:13:52,855 INFO [TEST-DEF:Error Pump] [ErrorStreamToLogsPumper] Instrumented 1 source files. 2008-01-22 17:13:55,300 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [AbstractBuilder] Build process for 'Test - Default' returned with return code = 0 2008-01-22 17:13:56,062 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' 2008-01-22 17:13:56,562 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2008-01-22 17:13:56,643 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [BuildArtifactPostProcessor] Copying the build artifacts for build:TEST-DEF-16 2008-01-22 17:15:01,029 INFO [BAM::Remote Agent on scharers.sydney.atlassian.com::Agent] [RemoteBuildResultProcessor] Build TEST-DEF-16 completed on Bamboo agent. Sending results to server. {noformat}

    Atlassian JIRA | 9 years ago | Adrian Hempel [Atlassian]
    java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null
  3. 0

    How can I cope with "IllegalStateException: BeanFactory not initialized or already closed"?

    Stack Overflow | 6 years ago | user569825
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    issues in spring petclinic applicaiton

    Stack Overflow | 4 years ago | user2216702
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c all 'refresh' before multicasting events via the context: Root WebApplicationCon text: startup date [Wed Mar 27 11:31:56 CDT 2013]; root of context hierarchy at org.springframework.context.support.AbstractApplic ationContext.getApp licationEventMulticaster(AbstractApplicationContex t.java:347) [spring-context-3. 2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.publis hEvent(AbstractApplicationContext.java:334) [spring-context-3.2.2.RELEASE.jar:3. 2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.doClos e(AbstractApplicationContext.java:1049) [spring-context-3.2.2.RELEASE.jar:3.2.2. RELEASE] at org.springframework.context.support.AbstractApplic ationContext.close( AbstractApplicationContext.java:1010) [spring-context-3.2.2.RELEASE.jar:3.2.2.RE LEASE] at org.springframework.web.context.ContextLoader.clos eWebApplicationCont ext(ContextLoader.java:558) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.web.context.ContextLoaderListe ner.contextDestroye d(ContextLoaderListener.java:143) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.apache.catalina.core.StandardContext.listenerS top(StandardContext .java:4831) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.StandardContext.stopInter nal(StandardContext .java:5478) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.stop(Lifecy cleBase.java:232) [ tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:160) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1559) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1549) [tomcat-embed-core-7.0.30.jar:7.0.30] at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303) [n a:1.6.0_20] at java.util.concurrent.FutureTask.run(FutureTask.jav a:138) [na:1.6.0_20 ] at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExec utor.java:886) [na:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor .java:908) [na:1.6.0_20]
  6. 0

    Porting project JBoss AS 6 to JBoss AS 7

    Stack Overflow | 5 years ago | Rounak
    java.lang.IllegalStateException: Application was not properly initialize d at startup, could not find Factory: javax.faces.application.ApplicationFactory at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.jav a:894) [jsf-api.jar:] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319) [jsf-api .jar:] at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext .java:112) [jsf-impl.jar:] at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureList ener.java:325) [jsf-impl.jar:] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext .java:3465) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContext.stop(StandardContext.java:39 70) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 888) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentS ervice.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se rviceControllerImpl.java:1824) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont rollerImpl.java:1759) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1110) [:1.7.0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:603) [:1.7.0]

    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.IllegalStateException

      @NotNull method com/atlassian/bamboo/vcsversion/VCSVersionReader.call must not return null

      at com.atlassian.bamboo.vcsversion.VCSVersionReader.call()
    2. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.vcsversion.VCSVersionReader.call(VCSVersionReader.java)
      2. com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:53)
      3. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:144)
      4. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.performBuild(BuildAgentControllerImpl.java:63)
      5. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:85)
      6. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      6 frames
    3. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame