While attempting to run a KitchenCI test on Bamboo, we get the following error:
Error occurred while running Task 'Kitchen Convergence Test(5)' of type net.bytesource.bamboo.cheftesttask:kitchenTestTask.
22-Mar-2016 16:47:21 java.lang.IllegalMonitorStateException
22-Mar-2016 16:47:21 at java.lang.Object.wait(Native Method)
22-Mar-2016 16:47:21 at net.bytesource.bamboo.cheftesttask.KitchenTestTask.execute(KitchenTestTask.java:25)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$124(TaskExecutorImpl.java:269)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:269)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
22-Mar-2016 16:47:21 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
22-Mar-2016 16:47:21 at java.lang.Thread.run(Thread.java:745)
I have tried tracking the cause of this error down but I am having zero luck figuring it out. I need to know how I can prevent, suppress, or otherwise ignore this error so that Bamboo will continue testing as configured.