org.xmlpull.v1.XmlPullParserException: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313)

Jenkins JIRA | Vladimir Sitnikov | 1 year ago
  1. 0

    The following part of testng-results.xml makes testng plugin to fail parsing: {noformat} <exception class="org.testng.SkipException"> <message> <![CDATA[Incremental refresh does not support dst param filters. Error message <<Lines differ. Actual: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, ABXFwWAAEAANjKpAAa], [[second value][line 1] Memo_M_1 RDBL Test object create/delete in one replication [line 2] Memo_M_1 RDBL Test object create/delete in one replication, 9138653185713543795, 2, ABXFwWAAEAANjKpABC]]. Expected: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, MACRO(#$NOT_NULL$#)]]: lists don't have the same size expected [1] but found [2]>> matches exclude regexp <<Lines differ. Actual: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, \[\^]\]\+], [[second value][line 1] Memo_M_1 RDBL Test object create/delete in one replication [line 2] Memo_M_1 RDBL Test object create/delete in one replication, 9138653185713543795, 2, \[\^]\]\+]]. Expected: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, MACRO(#$NOT_NULL$#)]]: lists don't have the same size expected [1] but found [2]>>]]> </message> ... {noformat} The message is as follows: {noformat} 00:34:42.839 Failed to parse XML: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313) 00:34:42.839 org.xmlpull.v1.XmlPullParserException: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313) 00:34:42.839 at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1261) 00:34:42.839 at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) 00:34:42.839 at hudson.plugins.testng.parser.ResultsParser.parse(ResultsParser.java:154) 00:34:42.839 at hudson.plugins.testng.TestNGTestResultBuildAction.loadResults(TestNGTestResultBuildAction.java:120) 00:34:42.839 at hudson.plugins.testng.Publisher.perform(Publisher.java:126) 00:34:42.839 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 00:34:42.839 at hudson.model.Build$BuildExecution.post2(Build.java:185) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 00:34:42.839 at hudson.model.Run.execute(Run.java:1766) 00:34:42.839 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:34:42.839 at hudson.model.ResourceController.execute(ResourceController.java:98) 00:34:42.839 at hudson.model.Executor.run(Executor.java:381) {noformat} What if tesngplugin switches to JDK's default parser?\ Impact: "TestNG Results" link is missing.

    Jenkins JIRA | 1 year ago | Vladimir Sitnikov
    org.xmlpull.v1.XmlPullParserException: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313)
  2. 0

    The following part of testng-results.xml makes testng plugin to fail parsing: {noformat} <exception class="org.testng.SkipException"> <message> <![CDATA[Incremental refresh does not support dst param filters. Error message <<Lines differ. Actual: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, ABXFwWAAEAANjKpAAa], [[second value][line 1] Memo_M_1 RDBL Test object create/delete in one replication [line 2] Memo_M_1 RDBL Test object create/delete in one replication, 9138653185713543795, 2, ABXFwWAAEAANjKpABC]]. Expected: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, MACRO(#$NOT_NULL$#)]]: lists don't have the same size expected [1] but found [2]>> matches exclude regexp <<Lines differ. Actual: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, \[\^]\]\+], [[second value][line 1] Memo_M_1 RDBL Test object create/delete in one replication [line 2] Memo_M_1 RDBL Test object create/delete in one replication, 9138653185713543795, 2, \[\^]\]\+]]. Expected: [[[first value] Memo_M_1 *multiple*dst*param*filter*, 9138653185713543795, 1, MACRO(#$NOT_NULL$#)]]: lists don't have the same size expected [1] but found [2]>>]]> </message> ... {noformat} The message is as follows: {noformat} 00:34:42.839 Failed to parse XML: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313) 00:34:42.839 org.xmlpull.v1.XmlPullParserException: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313) 00:34:42.839 at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1261) 00:34:42.839 at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) 00:34:42.839 at hudson.plugins.testng.parser.ResultsParser.parse(ResultsParser.java:154) 00:34:42.839 at hudson.plugins.testng.TestNGTestResultBuildAction.loadResults(TestNGTestResultBuildAction.java:120) 00:34:42.839 at hudson.plugins.testng.Publisher.perform(Publisher.java:126) 00:34:42.839 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 00:34:42.839 at hudson.model.Build$BuildExecution.post2(Build.java:185) 00:34:42.839 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 00:34:42.839 at hudson.model.Run.execute(Run.java:1766) 00:34:42.839 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:34:42.839 at hudson.model.ResourceController.execute(ResourceController.java:98) 00:34:42.839 at hudson.model.Executor.run(Executor.java:381) {noformat} What if tesngplugin switches to JDK's default parser?\ Impact: "TestNG Results" link is missing.

    Jenkins JIRA | 1 year ago | Vladimir Sitnikov
    org.xmlpull.v1.XmlPullParserException: unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313)
  3. 0

    [JIRA] [testng-plugin] (JENKINS-30285) TestNG plugin is unable to parse << in results xml

    Google Groups | 1 year ago | sitnikov...@gmail.com (JIRA)
    org.xmlpull.v1.XmlPullParserException: unexpected character in markup &lt; (position: TEXT seen ...e same size expected [1] but found [2]&gt;&gt; matches exclude regexp &lt;&lt;... @175:313)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    testng-plugin: Failed to parse XML

    Google Groups | 1 year ago | Norbert Sensen
    org.xmlpull.v1.XmlPullParserException: characters ]]> are not allowed in content (position: CDSECT seen ...maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)\n]]>... @73:4)
  6. 0

    Maven test failing & Maven Central Repository

    GitHub | 4 years ago | Nking92
    org.xml.sax.SAXParseException: parsing error: org.xmlpull.v1.XmlPullParserException: unexpected character in markup (position: START_TAG seen ...ffsetWidth;\n }\n for (var n = 0; n < ... @42:37)

    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.xmlpull.v1.XmlPullParserException

      unexpected character in markup < (position: TEXT seen ...e same size expected [1] but found [2]>> matches exclude regexp <<... @175:313)

      at org.xmlpull.mxp1.MXParser.nextImpl()
    2. MXP1: Xml Pull Parser 3rd Edition (XPP3)
      MXParser.nextToken
      1. org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1261)
      2. org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100)
      2 frames
    3. hudson.plugins.testng
      Publisher.perform
      1. hudson.plugins.testng.parser.ResultsParser.parse(ResultsParser.java:154)
      2. hudson.plugins.testng.TestNGTestResultBuildAction.loadResults(TestNGTestResultBuildAction.java:120)
      3. hudson.plugins.testng.Publisher.perform(Publisher.java:126)
      3 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:381)
      9 frames