Test execution thread caught an exception
Asked by ct_infrastructure@consolidatedtrading.com:

At the end of a test run that succeeds, an error is thrown. If we run this test by hand on the same server it works. Bamboo Version 6.1.1 Details for the error:

Growing byte stream buffer \[0x7ffc37dd9cf8\] to 8388608 bytes140055205644096 DEBUG 1543940784705032482 2018-12-04 10:26:24.705032482 ByteStreamBuffer.cpp:38 Growing byte stream buffer \[0x7ffc37dd9d20\] to 1048576 bytes\[ OK \] MDAMaterializationTransformerTest.reachLimitTickersPerPass (13692 ms)\[----------\] 1 test from MDAMaterializationTransformerTest (13692 ms total)\[----------\] Global test environment tear-down\[==========\] 1 test from 1 test case ran. (13692 ms total)\[ PASSED \] 1 test.End of test results for: core/cpp/build-ivybridge-dbg/test/MDAMaterializationTransformer_test  
error 04-Dec-2018 10:26:28 Test execution thread caught an exception.  
error 04-Dec-2018 10:26:28 Error occurred while running Task 'Run unit tests (core)(3)' of type com.stellarity.bamboo.googletest-task:googleTestTask.  
error 04-Dec-2018 10:26:28 com.atlassian.bamboo.task.TaskException: Failing the task due to errors. See the build log.  
error 04-Dec-2018 10:26:28 at com.stellarity.bamboo.task.GoogleTestTask$Executor.execute(GoogleTestTask.java:111)  
error 04-Dec-2018 10:26:28 at com.stellarity.bamboo.task.GoogleTestTask.execute(GoogleTestTask.java:57)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$2(TaskExecutorImpl.java:282)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:223)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:282)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:111)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:185)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:120)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:113)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:113)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:47)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)  
error 04-Dec-2018 10:26:28 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)  
error 04-Dec-2018 10:26:28 at java.lang.Thread.run(Thread.java:748)  
simple 04-Dec-2018 10:26:28 Running post build plugin 'NCover Results Collector'  
simple 04-Dec-2018 10:26:28 Running post build plugin 'Artifact Copier'  
simple 04-Dec-2018 10:26:28 Running post build plugin 'npm Cache Cleanup'  
simple 04-Dec-2018 10:26:28 Running post build plugin 'Clover Results Collector'  
simple 04-Dec-2018 10:26:28 Running post build plugin 'Docker Container Cleanup'  
simple 04-Dec-2018 10:26:28 Finalising the build...  
simple 04-Dec-2018 10:26:28 Stopping timer.  
simple 04-Dec-2018 10:26:28 Build KEP-MC-JOB1-5 completed.  
simple 04-Dec-2018 10:26:28 Running on server: post build plugin 'NCover Results Collector'  
simple 04-Dec-2018 10:26:28 Running on server: post build plugin 'Build Hanging Detection Configuration'  
simple 04-Dec-2018 10:26:28 Running on server: post build plugin 'Clover Delta Calculator'  
simple 04-Dec-2018 10:26:28 Running on server: post build plugin 'Maven Dependencies Postprocessor'  
simple 04-Dec-2018 10:26:28 All post build plugins have finished  
simple 04-Dec-2018 10:26:28 Generating build results summary...  
simple 04-Dec-2018 10:26:28 Saving build results to disk...  
simple 04-Dec-2018 10:26:28 Logging substituted variables...  
simple 04-Dec-2018 10:26:28 Indexing build results...  
simple 04-Dec-2018 10:26:28 Finished building KEP-MC-JOB1-5.


Answers:
author: Daniel Santos
body: Hi [ct_infrastructure@consolidatedtrading.com](/t5/user/viewprofilepage/user-id/2288850),  

The error happens in the task **Run unit tests (core)(3)** from [Stellarity Software](https://marketplace.atlassian.com/vendors/1210664/stellarity-software) which is not supported by Atlassian. This is where the code is failing:

```
error 04-Dec-2018 10:26:28 at com.stellarity.bamboo.task.GoogleTestTask$Executor.execute(GoogleTestTask.java:111)
error 04-Dec-2018 10:26:28 at com.stellarity.bamboo.task.GoogleTestTask.execute(GoogleTestTask.java:57)
```

I would recommend you contacting their support to try clarifying what could be causing this issue.  

You can find their details here: [GoogleTest Task / Support](https://marketplace.atlassian.com/apps/1215295/googletest-task?hosting=server&tab=support).  

comments: author: Sergey Podobry _Stellarity Software_
body: Thank you [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) for providing the right direction.


author: joshysav
body: Hey Sergey,

Did you have success with this?