java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null

Atlassian JIRA | Ajay Sridhar [Atlassian] | 9 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After creating a plan the initial build remains in "building state", although the current activity tab says that the build has passed - {quote} 28-Mar-2008 12:14:25 Running pre-build action: VCS Version Collector 28-Mar-2008 12:14:25 Building started with CustomCommandBuilder 28-Mar-2008 12:14:25 Starting to build 'Test - sdf' ... running command line: /bin/bash a.bash ... in : /Users/asridhar/Bamboo/homes/trunk/xml-data/build-dir/TST-DDDD ... using java: null ... using environment variables: 28-Mar-2008 12:14:25 a 28-Mar-2008 12:14:25 Build process for 'Test - sdf' returned with return code = 0 28-Mar-2008 12:14:25 Failed to execute build: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null 28-Mar-2008 12:14:25 Finalising the build... 28-Mar-2008 12:14:25 Stopping timer. 28-Mar-2008 12:14:25 Build TST-DDDD-1 completed. 28-Mar-2008 12:14:25 Running post build plugin on server 'Clover Delta Calculator' {quote} Where as on the dashboard I get the exception below - {quote} Build Test - sdf 1 : Failed to execute build 'com.atlassian.bamboo.v2.build.CurrentBuildResultImpl@9ebca3' (java.lang.IllegalStateException : @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null)java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null at com.atlassian.bamboo.v2.build.CurrentBuildResultImpl.getBuildState(CurrentBuildResultImpl.java) at com.atlassian.bamboo.builder.AbstractBuilder.determineBuildStatus(AbstractBuilder.java:400) at com.atlassian.bamboo.builder.AbstractBuilder.collateTestResults(AbstractBuilder.java:361) at com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:280) at com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:232) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy42.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101) 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) {quote}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null
  2. 0

    After creating a plan the initial build remains in "building state", although the current activity tab says that the build has passed - {quote} 28-Mar-2008 12:14:25 Running pre-build action: VCS Version Collector 28-Mar-2008 12:14:25 Building started with CustomCommandBuilder 28-Mar-2008 12:14:25 Starting to build 'Test - sdf' ... running command line: /bin/bash a.bash ... in : /Users/asridhar/Bamboo/homes/trunk/xml-data/build-dir/TST-DDDD ... using java: null ... using environment variables: 28-Mar-2008 12:14:25 a 28-Mar-2008 12:14:25 Build process for 'Test - sdf' returned with return code = 0 28-Mar-2008 12:14:25 Failed to execute build: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null 28-Mar-2008 12:14:25 Finalising the build... 28-Mar-2008 12:14:25 Stopping timer. 28-Mar-2008 12:14:25 Build TST-DDDD-1 completed. 28-Mar-2008 12:14:25 Running post build plugin on server 'Clover Delta Calculator' {quote} Where as on the dashboard I get the exception below - {quote} Build Test - sdf 1 : Failed to execute build 'com.atlassian.bamboo.v2.build.CurrentBuildResultImpl@9ebca3' (java.lang.IllegalStateException : @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null)java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState must not return null at com.atlassian.bamboo.v2.build.CurrentBuildResultImpl.getBuildState(CurrentBuildResultImpl.java) at com.atlassian.bamboo.builder.AbstractBuilder.determineBuildStatus(AbstractBuilder.java:400) at com.atlassian.bamboo.builder.AbstractBuilder.collateTestResults(AbstractBuilder.java:361) at com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:280) at com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:232) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy42.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101) 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) {quote}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    java.lang.IllegalStateException: @NotNull method com/atlassian/bamboo/v2/build/CurrentBuildResultImpl.getBuildState 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/v2/build/CurrentBuildResultImpl.getBuildState must not return null

      at com.atlassian.bamboo.v2.build.CurrentBuildResultImpl.getBuildState()
    2. com.atlassian.bamboo
      ExecuteBuildTask.call
      1. com.atlassian.bamboo.v2.build.CurrentBuildResultImpl.getBuildState(CurrentBuildResultImpl.java)
      2. com.atlassian.bamboo.builder.AbstractBuilder.determineBuildStatus(AbstractBuilder.java:400)
      3. com.atlassian.bamboo.builder.AbstractBuilder.collateTestResults(AbstractBuilder.java:361)
      4. com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:280)
      5. com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:232)
      6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:64)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    5. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      1 frame
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    7. Unknown
      $Proxy42.call
      1. $Proxy42.call(Unknown Source)
      1 frame
    8. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
      2. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86)
      3. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101)
      4. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      4 frames
    9. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame