hudson.util.IOException2: There are some problems during the conversion into JUnit reports:

Jenkins JIRA | toto tata | 5 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

    I am building a C++ project using Jenkins (Jenkins v1.442 / xUnit v1.29) My C++ project has some unit tests, set up using boost::test (v1.45) I run my test program using options : "--output_format=XML --log_level=all --report_level=no" xUnit fails to parse my XML test result file (cf. attached). Here is the stacktrace : Warning: at xsl:stylesheet on line 4 Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.DocumentInfo at net.sf.saxon.Configuration.buildDocument(Configuration.java:2760) at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:287) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:339) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionServ ice.java:124) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:171) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) 7 dÚc. 2011 17:24:33 hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps ATTENTION: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception hudson.util.IOException2: There are some problems during the conversion into JUnit reports: at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:164) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:171) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.Documen tInfo at net.sf.saxon.Configuration.buildDocument(Configuration.java:2760) at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:287) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:339) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionServ ice.java:124) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) ... 16 more

    Jenkins JIRA | 5 years ago | toto tata
    hudson.util.IOException2: There are some problems during the conversion into JUnit reports:
  2. 0

    I am building a C++ project using Jenkins (Jenkins v1.442 / xUnit v1.29) My C++ project has some unit tests, set up using boost::test (v1.45) I run my test program using options : "--output_format=XML --log_level=all --report_level=no" xUnit fails to parse my XML test result file (cf. attached). Here is the stacktrace : Warning: at xsl:stylesheet on line 4 Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.DocumentInfo at net.sf.saxon.Configuration.buildDocument(Configuration.java:2760) at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:287) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:339) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionServ ice.java:124) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:171) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) 7 dÚc. 2011 17:24:33 hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps ATTENTION: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception hudson.util.IOException2: There are some problems during the conversion into JUnit reports: at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:164) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:171) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.Documen tInfo at net.sf.saxon.Configuration.buildDocument(Configuration.java:2760) at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:287) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:339) at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionServ ice.java:124) at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) ... 16 more

    Jenkins JIRA | 5 years ago | toto tata
    hudson.util.IOException2: There are some problems during the conversion into JUnit reports:

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.Documen tInfo

      at net.sf.saxon.Configuration.buildDocument()
    2. Saxon HE
      DocumentBuilder.build
      1. net.sf.saxon.Configuration.buildDocument(Configuration.java:2760)
      2. net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:287)
      2 frames
    3. com.thalesgroup.dtkit
      InputMetricXSL.convert
      1. com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:339)
      2. com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177)
      3. com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194)
      4. com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202)
      4 frames
    4. com.thalesgroup.hudson
      XUnitTransformer.invoke
      1. com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionService.java:124)
      2. com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82)
      3. com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135)
      4. com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37)
      4 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:783)
      2. hudson.FilePath.act(FilePath.java:765)
      2 frames
    6. com.thalesgroup.hudson
      XUnitPublisher.perform
      1. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:171)
      2. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124)
      3. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101)
      3 frames
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
      7. hudson.model.Run.run(Run.java:1429)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:238)
      10 frames