Description
The SharePoint Connector builds are consistently failing due to what appears to be a problem with the Bamboo remote agent.
The problem started occurring sometime in the last few weeks, since I last ran a build.
Here are the builds that have failed with this problem:
- https://bamboo.extranet.atlassian.com/browse/CSI-DEF-248
- https://bamboo.extranet.atlassian.com/browse/CSI-DEF-249
When CSI-DEF-248 failed, I noticed that the bamboo remote agent installed on the SharePoint build server was only "atlassian-bamboo-agent-installer-2.3.jar". So, before running CSI-DEF-249, I upgraded the remote agent to "atlassian-bamboo-agent-installer-2.6.jar". However, CSI-DEF-249 still failed with the same error.
Looking at the build logs, the build actually completes successfully (with some test errors), but the build is marked as failed with an exception when Bamboo tries to package up the error failures.
Here's the error from build summary screen (this exception does not appear in the build log)
Failed to execute the build 'CSI-DEF-249' java.lang.NoClassDefFoundError: com/atlassian/bamboo/results/tests/TestResultError at com.atlassian.bamboo.plugin.builder.nant.NUnitXmlTestResultsParser$FailureElementParser.startElement(NUnitXmlTestResultsParser.java:150) at com.atlassian.bamboo.plugin.builder.nant.TestResultContentHandler.startElement(TestResultContentHandler.java:67) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at com.atlassian.bamboo.plugin.builder.nant.NUnitXmlTestResultsParser.parse(NUnitXmlTestResultsParser.java:228) at com.atlassian.bamboo.plugin.builder.nant.TestReportCollectorImpl.collect(TestReportCollectorImpl.java:44) at com.atlassian.bamboo.plugin.builder.nant.TestResultFileVisitor.visitFile(TestResultFileVisitor.java:68) at com.atlassian.bamboo.utils.FileVisitor.visitAllFilesThatMatchAPattern(FileVisitor.java:93) at com.atlassian.bamboo.utils.FileVisitor.visitFilesThatMatch(FileVisitor.java:64) at com.atlassian.bamboo.plugin.builder.nant.NunitScriptBuilder.processNUnitResults(NunitScriptBuilder.java:97) at com.atlassian.bamboo.plugin.builder.nant.NunitScriptBuilder.collateTestResults(NunitScriptBuilder.java:62) at com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:302) at com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:255) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:78) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.atlassian.bamboo.results.tests.TestResultError at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:146) at java.lang.ClassLoader.loadClass(Unknown Source) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:304) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 25 more Failed to execute the build 'CSI-DEF-249': com/atlassian/bamboo/results/tests/TestResultError