[ 
https://issues.jenkins-ci.org/browse/JENKINS-11393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated JENKINS-11393:
-----------------------------------------

    Attachment: testlink-3.1RC1.hpi

Hi John! 

When you have some spare time, could you give a try on this new version of the 
plug-in, please? I refactored several parts of the code, and it would be great 
if you could run few jobs with and check if the OutOfMemory is still occurring. 
Please :-)

Thank you
Bruno
                
> error parsing junit TEST-*.xml
> ------------------------------
>
>                 Key: JENKINS-11393
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-11393
>             Project: Jenkins
>          Issue Type: Bug
>          Components: testlink
>    Affects Versions: current
>         Environment: Redhat
> Jenkins 1.434
> TestLink plugin 3.02
>            Reporter: John Sillers
>            Assignee: Bruno P. Kinoshita
>         Attachments: testlink-3.1RC1.hpi
>
>
> Jenkins output:
> Started by timer
> Building remotely on jenkins-slave4 (Windows2008)
> Copied 298 artifacts from trunk-onqmodels #482
> Copied 19 artifacts from trunk-onqQaAccept #235
> Copied 5 artifacts from trunk-onqQaQueueSchedule #31
> Copied 21 artifacts from trunk-onqIntTestIntegration #252
> Copied 6 artifacts from trunk-onqQaPrimeTheDialer #160
> Copied 6 artifacts from trunk-onqQaPurgeRecords #33
> Copied 5 artifacts from trunk-onqQaReleaseSentRecords #42
> Copied 5 artifacts from trunk-onqQaSimulation #41
> Copied 5 artifacts from trunk-onqQaMultiTenant #49
> Copied 5 artifacts from trunk-onqQaTransferAccounts #26
> Preparing TestLink client API.
> Using TestLink URL: 
> https://jira.corp.alisolutions.com/testlink/lib/api/xmlrpc.php
> Found 102 automated test cases in TestLink.
> Sorting automated test cases by TestLink test plan execution order.
> Executing single Build Steps.
> Executing iterative Build Steps.
> Looking for the test results of TestLink test cases.
> Looking for test results in JUnit suites.
> Found [347] JUnit XML(s).
> hudson.plugins.testlink.parser.ParserException: Error while parsing file 
> c:\Users\buildsys\hudson\workspace\trunk-updateTestLink\build\junit\TEST-com.ali.onqtest.qa.purgeRecords.PurgeRecordsMultipleFileLoadTest.xml:
>  org.xml.sax.SAXParseException: Premature end of file.
>       at hudson.plugins.testlink.parser.Parser.parse(Parser.java:101)
>       at 
> hudson.plugins.testlink.result.junit.JUnitSuitesTestResultSeeker.processJUnitReports(JUnitSuitesTestResultSeeker.java:124)
>       at 
> hudson.plugins.testlink.result.junit.JUnitSuitesTestResultSeeker.seek(JUnitSuitesTestResultSeeker.java:94)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.seekTestResults(TestResultsCallable.java:98)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:126)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:45)
>       at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>       at hudson.remoting.Request$2.run(Request.java:287)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>       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:60)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: hudson.plugins.testlink.parser.ParserException: 
> org.xml.sax.SAXParseException: Premature end of file.
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:102)
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:51)
>       at hudson.plugins.testlink.parser.Parser.parse(Parser.java:89)
>       ... 16 more
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
>       at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>       at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at 
> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>       at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>       at javax.xml.parsers.SAXParser.parse(Unknown Source)
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:94)
>       ... 18 more
> Looking for test results in JUnit classes.
> Found [347] JUnit XML(s).
> hudson.plugins.testlink.parser.ParserException: Error while parsing file 
> c:\Users\buildsys\hudson\workspace\trunk-updateTestLink\build\junit\TEST-com.ali.onqtest.qa.purgeRecords.PurgeRecordsMultipleFileLoadTest.xml:
>  org.xml.sax.SAXParseException: Premature end of file.
>       at hudson.plugins.testlink.parser.Parser.parse(Parser.java:101)
>       at 
> hudson.plugins.testlink.result.junit.JUnitTestCasesTestResultSeeker.processJUnitReports(JUnitTestCasesTestResultSeeker.java:133)
>       at 
> hudson.plugins.testlink.result.junit.JUnitTestCasesTestResultSeeker.seek(JUnitTestCasesTestResultSeeker.java:103)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.seekTestResults(TestResultsCallable.java:98)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:126)
>       at 
> hudson.plugins.testlink.result.TestResultsCallable.invoke(TestResultsCallable.java:45)
>       at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>       at hudson.remoting.Request$2.run(Request.java:287)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>       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:60)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: hudson.plugins.testlink.parser.ParserException: 
> org.xml.sax.SAXParseException: Premature end of file.
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:102)
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:51)
>       at hudson.plugins.testlink.parser.Parser.parse(Parser.java:89)
>       ... 16 more
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
>       at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>       at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>       at 
> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>       at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>       at javax.xml.parsers.SAXParser.parse(Unknown Source)
>       at 
> hudson.plugins.testlink.parser.junit.JUnitParser.parse(JUnitParser.java:94)
>       ... 18 more
> FATAL: remote file operation failed: 
> c:/Users/buildsys/hudson/workspace/trunk-updateTestLink at 
> hudson.remoting.Channel@4b730404:jenkins-slave4 (Windows2008)
> hudson.util.IOException2: remote file operation failed: 
> c:/Users/buildsys/hudson/workspace/trunk-updateTestLink at 
> hudson.remoting.Channel@4b730404:jenkins-slave4 (Windows2008)
>       at hudson.FilePath.act(FilePath.java:781)
>       at hudson.FilePath.act(FilePath.java:767)
>       at 
> hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:196)
>       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
>       at 
> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
>       at hudson.model.Build$RunnerImpl.build(Build.java:178)
>       at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
>       at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:460)
>       at hudson.model.Run.run(Run.java:1404)
>       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>       at hudson.model.ResourceController.execute(ResourceController.java:88)
>       at hudson.model.Executor.run(Executor.java:230)
> Caused by: java.io.IOException: Remote call on jenkins-slave4 (Windows2008) 
> failed
>       at hudson.remoting.Channel.call(Channel.java:690)
>       at hudson.FilePath.act(FilePath.java:774)
>       ... 11 more
> Caused by: java.lang.OutOfMemoryError: Java heap space
> The PurgeRecordsMultipleFileLoadTest.xml was empty - the unit test job was 
> aborted. It would prefer that this would result in updating TestLink with a 
> failure result when the XML cannot be parsed than having the job fail.
> I re-ran the same job but excluded the artifacts from trunk-onqQaPurgeRecords 
> but that resulted in:
> Started by user jsillers
> Building remotely on jenkins-slave4 (Windows2008)
> Copied 298 artifacts from trunk-onqmodels #482
> Copied 19 artifacts from trunk-onqQaAccept #235
> Copied 5 artifacts from trunk-onqQaQueueSchedule #31
> Copied 21 artifacts from trunk-onqIntTestIntegration #252
> Copied 6 artifacts from trunk-onqQaPrimeTheDialer #160
> Copied 5 artifacts from trunk-onqQaReleaseSentRecords #42
> Copied 5 artifacts from trunk-onqQaSimulation #41
> Copied 5 artifacts from trunk-onqQaMultiTenant #49
> Copied 5 artifacts from trunk-onqQaTransferAccounts #26
> Preparing TestLink client API.
> Using TestLink URL: 
> https://jira.corp.alisolutions.com/testlink/lib/api/xmlrpc.php
> Found 102 automated test cases in TestLink.
> Sorting automated test cases by TestLink test plan execution order.
> Executing single Build Steps.
> Executing iterative Build Steps.
> Looking for the test results of TestLink test cases.
> Looking for test results in JUnit suites.
> Found [345] JUnit XML(s).
> Looking for test results in JUnit classes.
> Found [345] JUnit XML(s).
> FATAL: remote file operation failed: 
> c:/Users/buildsys/hudson/workspace/trunk-updateTestLink-clone at 
> hudson.remoting.Channel@4b730404:jenkins-slave4 (Windows2008)
> hudson.util.IOException2: remote file operation failed: 
> c:/Users/buildsys/hudson/workspace/trunk-updateTestLink-clone at 
> hudson.remoting.Channel@4b730404:jenkins-slave4 (Windows2008)
>       at hudson.FilePath.act(FilePath.java:781)
>       at hudson.FilePath.act(FilePath.java:767)
>       at 
> hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:196)
>       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
>       at 
> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
>       at hudson.model.Build$RunnerImpl.build(Build.java:178)
>       at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
>       at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:460)
>       at hudson.model.Run.run(Run.java:1404)
>       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>       at hudson.model.ResourceController.execute(ResourceController.java:88)
>       at hudson.model.Executor.run(Executor.java:230)
> Caused by: java.io.IOException: Remote call on jenkins-slave4 (Windows2008) 
> failed
>       at hudson.remoting.Channel.call(Channel.java:690)
>       at hudson.FilePath.act(FilePath.java:774)
>       ... 11 more
> Caused by: java.lang.OutOfMemoryError: Java heap space
> The 3.x version of the plugin fixed an OutOfMemoryError. Surprised that this 
> is still showing up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to