Variable file reader build task bombs after upgrade to Bamboo 8.
Asked by Dale Ghent:

EDIT: Self-corrected. It was subsequently realized that this was due to an out of date add-on. Welp!

The below stack trace happens whenever Variable File Reader runs. Prior version of Bamboo was 6.x, where it worked fine. I have tried recreating the build tasks in question, but still with the same java.lang.NoSuchMethodError result.

Running on Oracle JDK 11. Same result with JRE 1.8.

|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 13-Nov-2021 19:38:19 | Error occurred while running Task 'Read version 2(18)' of type com.atlassian.bamboo.plugins.variable.updater.variable-updater-generic:variable-file-reader. |
| 13-Nov-2021 19:38:19 | java.lang.NoSuchMethodError: com.atlassian.bamboo.variable.VariableContext.getDefinitions()Ljava/util/Map;                                                  |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.plugins.variable.updater.task.executor.VersionVariableTask.retrieveCurrentValue(VersionVariableTask.java:54)                        |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.plugins.variable.updater.task.executor.ReadFileVariableTask.executeTask(ReadFileVariableTask.java:53)                               |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.plugins.variable.updater.task.executor.VersionVariableTask.execute(VersionVariableTask.java:31)                                     |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$2(TaskExecutorImpl.java:321)                                                              |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)                                                      |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:321)                                                                       |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)                                                                            |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)                                                                |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:205)                                                      |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:177)                                                                  |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:168)                             |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)                                      |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:161)                                      |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:122)                                                         |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)                                                                                |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)                                                                   |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)                                                    |
| 13-Nov-2021 19:38:19 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)                                                                     |
| 13-Nov-2021 19:38:19 | at java.lang.Thread.run(Thread.java:748)                                                                                                                    |


Answers:
author: Alexey Chystoprudov
body: You need to upgrade <https://marketplace.atlassian.com/apps/1212549/variable-tasks-for-bamboo/version-history> to 1.1.26+