-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 1.505 (job running on a slave that has Java 1.6.0_30-b12 on Windows Server 2003 32-bit), Robot Framework Plugin 1.2.3
Steps to reproduce:
Have an output.xml file with broken XML when the plugin processes the results.
After the job fails, try to delete the output.xml file.
Expected:
Can delete the file.
Actual:
File in use, cannot be deleted. The JVM's process keeps the file open. This causes subsequent job runs to fail until the slave agent is restarted to release the file.
Stack trace from when the file is opened and not closed:
hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2
at hudson.FilePath.act(FilePath.java:861)
at hudson.FilePath.act(FilePath.java:838)
at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45)
at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:239)
at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:261)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733)
at hudson.model.Run.execute(Run.java:1592)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed!
at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90)
at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:58)
at java.lang.Thread.run(Unknown Source)
Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in end tag
at [row,col
]: [1649,61]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:700)
at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1054)
at com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3206)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190)
at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158)
at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114)
at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88)
... 12 more