java.lang.AbstractMethodError: com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V

Atlassian JIRA | James Dumay [Atlassian] | 6 years ago
  1. 0

    If you have mismatched plugin versions exciting exceptions like the following can be thrown: {noformat} java.lang.AbstractMethodError: com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V at com.atlassian.bamboo.chains.ChainPluginSupportImpl.buildCompleted(ChainPluginSupportImpl.java:194) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.run(ChainExecutionManagerImpl.java:203) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.handleEvent(ChainExecutionManagerImpl.java:189) 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:597) 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 $Proxy40.handleEvent(Unknown Source) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:637) {noformat}

    Atlassian JIRA | 6 years ago | James Dumay [Atlassian]
    java.lang.AbstractMethodError: com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V
  2. 0

    If you have mismatched plugin versions exciting exceptions like the following can be thrown: {noformat} java.lang.AbstractMethodError: com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V at com.atlassian.bamboo.chains.ChainPluginSupportImpl.buildCompleted(ChainPluginSupportImpl.java:194) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.run(ChainExecutionManagerImpl.java:203) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.handleEvent(ChainExecutionManagerImpl.java:189) 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:597) 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 $Proxy40.handleEvent(Unknown Source) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:637) {noformat}

    Atlassian JIRA | 6 years ago | James Dumay [Atlassian]
    java.lang.AbstractMethodError: com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V
  3. 0

    [BAM-16054] "java.lang.AbstractMethodError" exception on RuntimeTaskDataProvider#processRuntimeTaskData invocations after upgrade to Bamboo 5.9.0 - Atlassian JIRA

    atlassian.com | 11 months ago
    java.lang.AbstractMethodError: net.utoolity.atlassian.bamboo.taws.AWSRuntimeTaskDataProvider.processRuntimeTaskData(Lcom/atlassian/bamboo/task/runtime/RuntimeTaskDefinition;Lcom/atlassian/bamboo/v2/build/CommonContext;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [BAM-16054] "java.lang.AbstractMethodError" exception on RuntimeTaskDataProvider#processRuntimeTaskData invocations after upgrade to Bamboo 5.9.0 - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.AbstractMethodError: net.utoolity.atlassian.bamboo.taws.AWSRuntimeTaskDataProvider.processRuntimeTaskData(Lcom/atlassian/bamboo/task/runtime/RuntimeTaskDefinition;Lcom/atlassian/bamboo/v2/build/CommonContext;)V
  6. 0

    After upgrading to Bamboo 5.9.0, customers of ours encounter the following reproducible exception when running builds using our [Tasks for AWS|https://marketplace.atlassian.com/plugins/net.utoolity.atlassian.bamboo.tasks-for-aws] Add-on: {code} java.lang.AbstractMethodError: net.utoolity.atlassian.bamboo.taws.AWSRuntimeTaskDataProvider.processRuntimeTaskData(Lcom/atlassian/bamboo/task/runtime/RuntimeTaskDefinition;Lcom/atlassian/bamboo/v2/build/CommonContext;)V at com.atlassian.bamboo.chains.ChainPluginSupportHelper.processRuntimeTaskData(ChainPluginSupportHelper.java:76) at com.atlassian.bamboo.chains.ChainPluginSupportImpl$11.run(ChainPluginSupportImpl.java:319) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:200) at com.atlassian.bamboo.variable.CustomVariableContextRunnerImpl.execute(CustomVariableContextRunnerImpl.java:32) at com.atlassian.bamboo.chains.ChainPluginSupportImpl.buildCompleted(ChainPluginSupportImpl.java:305) at sun.reflect.GeneratedMethodAccessor2242.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy142.buildCompleted(Unknown Source) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$3.run(ChainExecutionManagerImpl.java:392) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:321) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.onBuildFinished(ChainExecutionManagerImpl.java:378) at sun.reflect.GeneratedMethodAccessor2241.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:744) {code} h4. Initital analysis Checking the 5.9.0 source of {{com.atlassian.bamboo.chains.ChainPluginSupportHelper#processRuntimeTaskData}} suggests this to be caused by an insufficient backwards compatibility check: {code} try { runtimeConfigurator.processRuntimeTaskData(taskDefinition, commonContext); } catch (NoSuchMethodError e) { runtimeConfigurator.processRuntimeTaskData((TaskDefinition) taskDefinition, commonContext); } {code} (i) This tries to fall back to the older (pre 5.9) {{RuntimeTaskDataProvider#processRuntimeTaskData}} method using a {{TaskDefinition}} instead of the newly introduced {{RuntimeTaskDefinition}}, but expects a {{java.lang.NoSuchMethodError}} instead of the actually thrown {{java.lang.AbstractMethodError}} as an indicator for applying the fallback. h4. Proposed fix Adjust {{ChainPluginSupportHelper#processRuntimeTaskData}} to catch the {{java.lang.AbstractMethodError}} exception and fall back to invoking the older {{RuntimeTaskDataProvider#processRuntimeTaskData}} method signature in that case. (!) We consider this to be a rather critical bug, as it affects all Bamboo Add-ons that implement a {{RuntimeTaskDataProvider}}.

    Atlassian JIRA | 1 year ago | Henrik Opel [Utoolity]
    java.lang.AbstractMethodError: net.utoolity.atlassian.bamboo.taws.AWSRuntimeTaskDataProvider.processRuntimeTaskData(Lcom/atlassian/bamboo/task/runtime/RuntimeTaskDefinition;Lcom/atlassian/bamboo/v2/build/CommonContext;)V

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

      com.atlassian.sandbox.bamboo.actions.SandboxPostStagedBuildAction.execute(Lcom/atlassian/bamboo/chains/StageExecution;Lcom/atlassian/bamboo/build/Job;Lcom/atlassian/bamboo/resultsummary/BuildResultsSummary;)V

      at com.atlassian.bamboo.chains.ChainPluginSupportImpl.buildCompleted()
    2. com.atlassian.bamboo
      ChainExecutionManagerImpl$2.run
      1. com.atlassian.bamboo.chains.ChainPluginSupportImpl.buildCompleted(ChainPluginSupportImpl.java:194)
      2. com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.run(ChainExecutionManagerImpl.java:203)
      2 frames
    3. com.atlassian.util
      ManagedLocks$ManagedLockImpl.withLock
      1. com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322)
      1 frame
    4. com.atlassian.bamboo
      ChainExecutionManagerImpl.handleEvent
      1. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.handleEvent(ChainExecutionManagerImpl.java:189)
      1 frame
    5. 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:597)
      4 frames
    6. 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
    7. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      1 frame
    8. 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
    9. Unknown
      $Proxy40.handleEvent
      1. $Proxy40.handleEvent(Unknown Source)
      1 frame
    10. com.atlassian.bamboo
      BambooEventManager$2.run
      1. com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66)
      1 frame
    11. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      2 frames
    12. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      1 frame
    13. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:637)
      1 frame