Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing aborts when XML is invalid #7

Closed
pihme opened this issue Aug 31, 2020 · 0 comments · Fixed by #8
Closed

Processing aborts when XML is invalid #7

pihme opened this issue Aug 31, 2020 · 0 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@pihme
Copy link
Contributor

pihme commented Aug 31, 2020

Plugin had an error when processing invalid XML file and did abort

[2020-08-28T14:44:32.436Z] io.zeebe.flakytestextractor.ParsingException: Error parsing JUnit XML report /home/jenkins/agent/workspace/9-increase-disk-usage-watermarks/qa/integration-tests/target/surefire-reports/TEST-io.zeebe.broker.it.clustering.BrokerLeaderChangeTest-it-testrun.xml

[2020-08-28T14:44:32.436Z]     at io.zeebe.flakytestextractor.ExtendedSurefireReportParser.parseXMLReportFiles (ExtendedSurefireReportParser.java:62)

[2020-08-28T14:44:32.436Z]     at io.zeebe.flakytestextractor.FlakyTestExtractorPlugin.execute (FlakyTestExtractorPlugin.java:41)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:200)

[2020-08-28T14:44:32.436Z]     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:196)

[2020-08-28T14:44:32.436Z]     at java.util.concurrent.FutureTask.run (FutureTask.java:264)

[2020-08-28T14:44:32.436Z]     at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)

[2020-08-28T14:44:32.436Z]     at java.util.concurrent.FutureTask.run (FutureTask.java:264)

[2020-08-28T14:44:32.436Z]     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)

[2020-08-28T14:44:32.436Z]     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)

[2020-08-28T14:44:32.436Z]     at java.lang.Thread.run (Thread.java:834)

[2020-08-28T14:44:32.436Z] Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

[2020-08-28T14:44:32.436Z]     at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:204)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (ErrorHandlerWrapper.java:178)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:400)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:327)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (XMLScanner.java:1471)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity (XMLDocumentFragmentScannerImpl.java:933)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity (XMLDocumentScannerImpl.java:562)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity (XMLEntityManager.java:1495)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load (XMLEntityScanner.java:1925)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData (XMLEntityScanner.java:1377)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanCDATASection (XMLDocumentFragmentScannerImpl.java:1618)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:2932)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:605)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:534)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:888)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:824)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:141)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1216)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:635)

[2020-08-28T14:44:32.437Z]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse (SAXParserImpl.java:324)

[2020-08-28T14:44:32.437Z]     at io.zeebe.flakytestextractor.ExtendedTestSuiteXMLParser.parse (ExtendedTestSuiteXMLParser.java:76)

[2020-08-28T14:44:32.437Z]     at io.zeebe.flakytestextractor.ExtendedTestSuiteXMLParser.parse (ExtendedTestSuiteXMLParser.java:61)

[2020-08-28T14:44:32.437Z]     at io.zeebe.flakytestextractor.ExtendedSurefireReportParser.parseXMLReportFiles (ExtendedSurefireReportParser.java:58)

[2020-08-28T14:44:32.437Z]     at io.zeebe.flakytestextractor.FlakyTestExtractorPlugin.execute (FlakyTestExtractorPlugin.java:41)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:200)

[2020-08-28T14:44:32.437Z]     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:196)

[2020-08-28T14:44:32.437Z]     at java.util.concurrent.FutureTask.run (FutureTask.java:264)

[2020-08-28T14:44:32.437Z]     at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)

[2020-08-28T14:44:32.437Z]     at java.util.concurrent.FutureTask.run (FutureTask.java:264)

[2020-08-28T14:44:32.437Z]     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)

[2020-08-28T14:44:32.437Z]     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)

[2020-08-28T14:44:32.437Z]     at java.lang.Thread.run (Thread.java:834)

[2020-08-28T14:44:32.437Z] [INFO] FlakyTestExtractorPlugin - finished

@pihme pihme added the bug Something isn't working label Aug 31, 2020
@pihme pihme self-assigned this Aug 31, 2020
pihme added a commit that referenced this issue Aug 31, 2020
@pihme pihme closed this as completed in #8 Aug 31, 2020
pihme added a commit that referenced this issue Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant