java.io.IOException: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException

Jenkins JIRA | KC Reaney | 6 years ago
  1. 0

    I'm consistently getting an error when the plugin attempts to parse the results. My HtmlSuite runs without any issue and the results files are being generated but the test always throws an exception and never generates the report. Publishing Selenium report... Copying the reports. parsing resultFile chrome.htm ERROR: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception java.io.IOException: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.retrieve(TestResult.java:111) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.getString(TestResult.java:98) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult.parse(TestResult.java:75) at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.createResults(SeleniumHtmlReportPublisher.java:95) at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$ReadInfoHandler.endElement(TestResult.java:154) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:331) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.parseFor(TestResult.java:123) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.retrieve(TestResult.java:107) ... 14 more

    Jenkins JIRA | 6 years ago | KC Reaney
    java.io.IOException: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException
  2. 0

    I'm consistently getting an error when the plugin attempts to parse the results. My HtmlSuite runs without any issue and the results files are being generated but the test always throws an exception and never generates the report. Publishing Selenium report... Copying the reports. parsing resultFile chrome.htm ERROR: Publisher org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher aborted due to exception java.io.IOException: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.retrieve(TestResult.java:111) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.getString(TestResult.java:98) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult.parse(TestResult.java:75) at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.createResults(SeleniumHtmlReportPublisher.java:95) at org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$ReadInfoHandler.endElement(TestResult.java:154) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:331) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.parseFor(TestResult.java:123) at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.retrieve(TestResult.java:107) ... 14 more

    Jenkins JIRA | 6 years ago | KC Reaney
    java.io.IOException: org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException

    Root Cause Analysis

    1. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$BreakParsingException

      No message provided

      at org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$ReadInfoHandler.endElement()
    2. org.jvnet.hudson
      TestResult$ReadInfoHandler.endElement
      1. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$ReadInfoHandler.endElement(TestResult.java:154)
      1 frame
    3. Java RT
      SAXParser.parse
      1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
      2. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
      3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
      4. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
      5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
      6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
      7. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      8. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
      9. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      10. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      11. javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      12. javax.xml.parsers.SAXParser.parse(SAXParser.java:331)
      12 frames
    4. org.jvnet.hudson
      SeleniumHtmlReportPublisher.perform
      1. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.parseFor(TestResult.java:123)
      2. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.retrieve(TestResult.java:107)
      3. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult$InfoParser.getString(TestResult.java:98)
      4. org.jvnet.hudson.plugins.seleniumhtmlreport.TestResult.parse(TestResult.java:75)
      5. org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.createResults(SeleniumHtmlReportPublisher.java:95)
      6. org.jvnet.hudson.plugins.seleniumhtmlreport.SeleniumHtmlReportPublisher.perform(SeleniumHtmlReportPublisher.java:74)
      6 frames
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:161)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585)
      7. hudson.model.Run.run(Run.java:1398)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:145)
      10 frames