java.lang.NoClassDefFoundError: com/atlassian/bamboo/results/tests/TestResultError

Atlassian JIRA | Joe Clark [Atlassian] | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    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) {noformat} 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 {noformat}

    Atlassian JIRA | 7 years ago | Joe Clark [Atlassian]
    java.lang.NoClassDefFoundError: com/atlassian/bamboo/results/tests/TestResultError
  2. 0

    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) {noformat} 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 {noformat}

    Atlassian JIRA | 7 years ago | Joe Clark [Atlassian]
    java.lang.NoClassDefFoundError: com/atlassian/bamboo/results/tests/TestResultError

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      com.atlassian.bamboo.results.tests.TestResultError

      at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass()
    2. com.atlassian.bamboo
      AgentClassLoader.findClass
      1. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:146)
      1 frame
    3. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(Unknown Source)
      1 frame
    4. com.atlassian.bamboo
      AgentClassLoader.loadClass
      1. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:304)
      1 frame
    5. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClass(Unknown Source)
      2. java.lang.ClassLoader.loadClassInternal(Unknown Source)
      2 frames
    6. com.atlassian.bamboo
      TestResultContentHandler.startElement
      1. com.atlassian.bamboo.plugin.builder.nant.NUnitXmlTestResultsParser$FailureElementParser.startElement(NUnitXmlTestResultsParser.java:150)
      2. com.atlassian.bamboo.plugin.builder.nant.TestResultContentHandler.startElement(TestResultContentHandler.java:67)
      2 frames
    7. Xerces2-j
      AbstractSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      8 frames
    8. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.plugin.builder.nant.NUnitXmlTestResultsParser.parse(NUnitXmlTestResultsParser.java:228)
      2. com.atlassian.bamboo.plugin.builder.nant.TestReportCollectorImpl.collect(TestReportCollectorImpl.java:44)
      3. com.atlassian.bamboo.plugin.builder.nant.TestResultFileVisitor.visitFile(TestResultFileVisitor.java:68)
      4. com.atlassian.bamboo.utils.FileVisitor.visitAllFilesThatMatchAPattern(FileVisitor.java:93)
      5. com.atlassian.bamboo.utils.FileVisitor.visitFilesThatMatch(FileVisitor.java:64)
      6. com.atlassian.bamboo.plugin.builder.nant.NunitScriptBuilder.processNUnitResults(NunitScriptBuilder.java:97)
      7. com.atlassian.bamboo.plugin.builder.nant.NunitScriptBuilder.collateTestResults(NunitScriptBuilder.java:62)
      8. com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:302)
      9. com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:255)
      10. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:78)
      11. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
      12. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90)
      13. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
      14. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
      14 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame