Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37692

Error with parsing output.xml from robot plugin

    Details

    • Similar Issues:

      Description

      I have 5 jobs running on a slave sequentially. Using robot plugin I upload the reports from each of the jobs post build.

      I see only one job is getting the results parsed whereas the 4 others are having issues with parsing the output.xml.

      My earlier version of Jenkins and robot plugin were 2.19 and 1.6.4. I tried to downgrade the version of Jenkins since some other products jobs were working fine on Jenkins version 1.633 and Robot plugin 1.6.1 but still saw the same issue. I am pasting the stacktrace here. I enabled jenkins logging for robot-plugin but still didn't see any additional information which may help to debug. Can anybody help to know what is the issue here?

      Robot results publisher started...
      -Parsing output xml:
      Failed!
      java.io.IOException: remote file operation failed: /logs/automation at hudson.remoting.Channel@16faf110:myhost-3: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed!
      at hudson.FilePath.act(FilePath.java:987)
      at hudson.FilePath.act(FilePath.java:969)
      at hudson.plugins.robot.RobotParser.parse(RobotParser.java:49)
      at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:217)
      at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:239)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
      Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed!
      at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:103)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:54)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at ......remote call to myhost-3(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      at hudson.remoting.Channel.call(Channel.java:778)
      at hudson.FilePath.act(FilePath.java:980)
      ... 14 more
      Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element <suite>
      at [row,col

      {unknown-source}

      ]: [4144,7]
      at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
      at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2730)
      at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:142)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:146)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:122)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:98)
      at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:54)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

          Hide
          yang928 Yang Li added a comment -

          same issue

          java.io.IOException: remote file operation failed: /.....<I removed....> <>
          at hudson.remoting.Channel@733abf89:Regression_8976_node_2: java.io.InvalidClassException: hudson.plugins.robot.model.RobotTestObject; local class incompatible: stream classdesc serialVersionUID = 3211887424644741067, local class serialVersionUID = -3191755290679194469
          20:32:06 at hudson.FilePath.act(FilePath.java:1014)
          20:32:06 at hudson.FilePath.act(FilePath.java:996)
          20:32:06 at hudson.plugins.robot.RobotParser.parse(RobotParser.java:49)
          20:32:06 at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:217)
          20:32:06 at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:239)
          20:32:06 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          20:32:06 at org.jenkins_ci.plugins.flexible_publish.builder.FailAtEndBuilder.perform(FailAtEndBuilder.java:104)
          20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
          20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
          20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
          20:32:06 at org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85)
          20:32:06 at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
          20:32:06 at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
          20:32:06 at hudson.plugins.templateproject.ProxyPublisher.perform(ProxyPublisher.java:85)
          20:32:06 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          20:32:06 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          20:32:06 at hudson.model.Run.execute(Run.java:1766)
          20:32:06 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          20:32:06 at hudson.model.ResourceController.execute(ResourceController.java:98)
          20:32:06 at hudson.model.Executor.run(Executor.java:410)
          20:32:06 Caused by: java.io.InvalidClassException: hudson.plugins.robot.model.RobotTestObject; local class incompatible: stream classdesc serialVersionUID = 3211887424644741067, local class serialVersionUID = -3191755290679194469
          20:32:06 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:612)
          20:32:06 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1630)
          20:32:06 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
          20:32:06 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1630)
          20:32:06 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
          20:32:06 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1779)
          20:32:06 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
          20:32:06 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
          20:32:06 at hudson.remoting.UserRequest.deserialize(UserRequest.java:216)
          20:32:06 at hudson.remoting.UserResponse.retrieve(UserRequest.java:249)
          20:32:06 at hudson.remoting.Channel.call(Channel.java:781)
          20:32:06 at hudson.FilePath.act(FilePath.java:1007)
          20:32:06 ... 22 more
          20:32:06 [htmlpublisher] Archiving HTML reports...

          Show
          yang928 Yang Li added a comment - same issue java.io.IOException: remote file operation failed: /.....<I removed....> <> at hudson.remoting.Channel@733abf89:Regression_8976_node_2: java.io.InvalidClassException: hudson.plugins.robot.model.RobotTestObject; local class incompatible: stream classdesc serialVersionUID = 3211887424644741067, local class serialVersionUID = -3191755290679194469 20:32:06 at hudson.FilePath.act(FilePath.java:1014) 20:32:06 at hudson.FilePath.act(FilePath.java:996) 20:32:06 at hudson.plugins.robot.RobotParser.parse(RobotParser.java:49) 20:32:06 at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:217) 20:32:06 at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:239) 20:32:06 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) 20:32:06 at org.jenkins_ci.plugins.flexible_publish.builder.FailAtEndBuilder.perform(FailAtEndBuilder.java:104) 20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) 20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) 20:32:06 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) 20:32:06 at org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85) 20:32:06 at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206) 20:32:06 at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124) 20:32:06 at hudson.plugins.templateproject.ProxyPublisher.perform(ProxyPublisher.java:85) 20:32:06 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) 20:32:06 at hudson.model.Build$BuildExecution.post2(Build.java:185) 20:32:06 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) 20:32:06 at hudson.model.Run.execute(Run.java:1766) 20:32:06 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 20:32:06 at hudson.model.ResourceController.execute(ResourceController.java:98) 20:32:06 at hudson.model.Executor.run(Executor.java:410) 20:32:06 Caused by: java.io.InvalidClassException: hudson.plugins.robot.model.RobotTestObject; local class incompatible: stream classdesc serialVersionUID = 3211887424644741067, local class serialVersionUID = -3191755290679194469 20:32:06 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:612) 20:32:06 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1630) 20:32:06 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521) 20:32:06 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1630) 20:32:06 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521) 20:32:06 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1779) 20:32:06 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353) 20:32:06 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373) 20:32:06 at hudson.remoting.UserRequest.deserialize(UserRequest.java:216) 20:32:06 at hudson.remoting.UserResponse.retrieve(UserRequest.java:249) 20:32:06 at hudson.remoting.Channel.call(Channel.java:781) 20:32:06 at hudson.FilePath.act(FilePath.java:1007) 20:32:06 ... 22 more 20:32:06 [htmlpublisher] Archiving HTML reports...
          Hide
          dirkrichter Dirk Richter added a comment - - edited

          @Yang Li: your error message is different and indicate a version conflict on your multiple jenkins nodes.

          @Padmanabh Sahasrabudhe: it seems, that your output.xml file is corrupt. Please check on hdd if it is correctly formatted and bigger than 4KB. If yes, i expect a configuration problem (e.g. on proxy), where requests bigger than 4KB are blocked.

           

           

          Show
          dirkrichter Dirk Richter added a comment - - edited @ Yang Li : your error message is different and indicate a version conflict on your multiple jenkins nodes. @ Padmanabh Sahasrabudhe : it seems, that your output.xml file is corrupt. Please check on hdd if it is correctly formatted and bigger than 4KB. If yes, i expect a configuration problem (e.g. on proxy), where requests bigger than 4KB are blocked.    
          Hide
          dirkrichter Dirk Richter added a comment -

          seems to be a deprecated issue: no reaction on my suggestions since half a year => close (can be reopened if needed)

          Show
          dirkrichter Dirk Richter added a comment - seems to be a deprecated issue: no reaction on my suggestions since half a year => close (can be reopened if needed)

            People

            • Assignee:
              jpiironen jpiironen
              Reporter:
              padmanabhps Padmanabh Sahasrabudhe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: