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

Jenkins JIRA | Denis Blanchette | 4 years ago
  1. 0

    We have a job that runs several cpp unit tests. When a test fails it sometimes does not output a correct XML format. The xUnit plugin says a file was in error, but does not indicate which one. It would be nice to know which file is in error instead of getting "Conversion error Error to convert - A file not found". Finding which of more than 3000 test report files is in incorrect format is a tedious task! [xUnit] [INFO] - Starting to record. 23:53:29 [xUnit] [INFO] - Processing UnitTest-1.4 (default) 23:53:29 [xUnit] [INFO] - [UnitTest-1.4 (default)] - 3347 test report file(s) were found with the pattern 'UT/*/*/*/xml/*.cpp.xml' relative to 'Jenkins\workspace' for the testing framework 'UnitTest-1.4 (default)'. 23:53:33 [xUnit] [ERROR] - Conversion error Error to convert - A file not found 23:53:33 ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception 23:53:33 hudson.util.IOException2: There are some problems during the conversion into JUnit reports: 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:164) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) 23:53:33 at hudson.FilePath.act(FilePath.java:842) 23:53:33 at hudson.FilePath.act(FilePath.java:824) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92) 23:53:33 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 23:53:33 at hudson.model.Build$BuildExecution.post2(Build.java:183) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 23:53:33 at hudson.model.Run.execute(Run.java:1513) 23:53:33 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 23:53:33 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:53:33 at hudson.model.Executor.run(Executor.java:236) 23:53:33 Caused by: com.thalesgroup.hudson.plugins.xunit.exception.XUnitException: Conversion error Error to convert - A file not found 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) 23:53:33 ... 15 more 23:53:33 Caused by: com.thalesgroup.dtkit.util.converter.ConversionException: Error to convert - A file not found 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:369) 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) 23:53:33 at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) 23:53:33 at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionService.java:124) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) 23:53:33 ... 16 more 23:53:33 Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. 23:53:33 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) 23:53:33 at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:324) 23:53:33 ... 21 more

    Jenkins JIRA | 4 years ago | Denis Blanchette
    hudson.util.IOException2: There are some problems during the conversion into JUnit reports:
  2. 0

    We have a job that runs several cpp unit tests. When a test fails it sometimes does not output a correct XML format. The xUnit plugin says a file was in error, but does not indicate which one. It would be nice to know which file is in error instead of getting "Conversion error Error to convert - A file not found". Finding which of more than 3000 test report files is in incorrect format is a tedious task! [xUnit] [INFO] - Starting to record. 23:53:29 [xUnit] [INFO] - Processing UnitTest-1.4 (default) 23:53:29 [xUnit] [INFO] - [UnitTest-1.4 (default)] - 3347 test report file(s) were found with the pattern 'UT/*/*/*/xml/*.cpp.xml' relative to 'Jenkins\workspace' for the testing framework 'UnitTest-1.4 (default)'. 23:53:33 [xUnit] [ERROR] - Conversion error Error to convert - A file not found 23:53:33 ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception 23:53:33 hudson.util.IOException2: There are some problems during the conversion into JUnit reports: 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:164) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:37) 23:53:33 at hudson.FilePath.act(FilePath.java:842) 23:53:33 at hudson.FilePath.act(FilePath.java:824) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115) 23:53:33 at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92) 23:53:33 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 23:53:33 at hudson.model.Build$BuildExecution.post2(Build.java:183) 23:53:33 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 23:53:33 at hudson.model.Run.execute(Run.java:1513) 23:53:33 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 23:53:33 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:53:33 at hudson.model.Executor.run(Executor.java:236) 23:53:33 Caused by: com.thalesgroup.hudson.plugins.xunit.exception.XUnitException: Conversion error Error to convert - A file not found 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:135) 23:53:33 ... 15 more 23:53:33 Caused by: com.thalesgroup.dtkit.util.converter.ConversionException: Error to convert - A file not found 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:369) 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:177) 23:53:33 at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:194) 23:53:33 at com.thalesgroup.dtkit.metrics.model.InputMetricXSL.convert(InputMetricXSL.java:202) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionService.java:124) 23:53:33 at com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:82) 23:53:33 ... 16 more 23:53:33 Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. 23:53:33 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) 23:53:33 at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) 23:53:33 at com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:324) 23:53:33 ... 21 more

    Jenkins JIRA | 4 years ago | Denis Blanchette
    hudson.util.IOException2: There are some problems during the conversion into JUnit reports:
  3. 0

    how to parse xml using DOM in java

    Stack Overflow | 3 years ago | ss3419670
    org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPQL query tool not running

    Oracle Community | 8 years ago | armen2010
    javax.persistence.PersistenceException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
  6. 0

    persistence.xml - Error parsing XML: XML InputStream(1) Premature end of file

    Stack Overflow | 4 years ago | N.M.
    javax.persistence.PersistenceException: Unable to configure EntityManagerFactory

  1. tvrmsmith 1 times, last 3 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.xml.sax.SAXParseException

    XML document structures must start and end within the same entity.

    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse()
  2. Java RT
    DocumentBuilderImpl.parse
    1. com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    2. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    2 frames
  3. com.thalesgroup.dtkit
    InputMetricXSL.convert
    1. com.thalesgroup.dtkit.util.converter.ConversionService.convert(ConversionService.java:324)
    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:842)
    2. hudson.FilePath.act(FilePath.java:824)
    2 frames
  6. org.jenkinsci.plugins
    XUnitPublisher.perform
    1. org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170)
    2. org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115)
    3. org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92)
    3 frames
  7. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
    6. hudson.model.Run.execute(Run.java:1513)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames