TestLink Jenkins issue

Discuss test processes, standards, documentation, teams, criteria, test environments, etc.

Moderators: Amaradana, TurboPT, TL Developers

TestLink Jenkins issue

Postby devonk » Thu Sep 29, 2016 6:34 am

Hi all,

I have been using TestLink together with Jenkins for years now. Currently I am using TestLink 1.9.13 with Jenkins 2.20 and TestLink Plugin 3.12
Since a few weeks the following error started happening when a jenkins job tries to do something with TestLink:

02:05:02 FATAL: Error retrieving test cases for test plan: Failed to parse server's response: Expected methodResponse element, got br
02:05:02 br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error retrieving test cases for test plan: Failed to parse server's response: Expected methodResponse element, got br
02:05:02 at br.eti.kinoshita.testlinkjavaapi.TestCaseService.getTestCasesForTestPlan(TestCaseService.java:347)
02:05:02 at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestCasesForTestPlan(TestLinkAPI.java:848)
02:05:02 at hudson.plugins.testlink.TestLinkSite.getAutomatedTestCases(TestLinkSite.java:135)
02:05:02 at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:213)
02:05:02 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
02:05:02 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
02:05:02 at hudson.model.Build$BuildExecution.build(Build.java:205)
02:05:02 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
02:05:02 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
02:05:02 at hudson.model.Run.execute(Run.java:1720)
02:05:02 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
02:05:02 at hudson.model.ResourceController.execute(ResourceController.java:98)
02:05:02 at hudson.model.Executor.run(Executor.java:404)
02:05:02 Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Expected methodResponse element, got br
02:05:02 at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
02:05:02 at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
02:05:02 at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
02:05:02 at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
02:05:02 at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
02:05:02 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
02:05:02 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
02:05:02 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
02:05:02 at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90)
02:05:02 at br.eti.kinoshita.testlinkjavaapi.TestCaseService.getTestCasesForTestPlan(TestCaseService.java:289)
02:05:02 ... 12 more
02:05:02 Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; Expected methodResponse element, got br
02:05:02 at org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement(XmlRpcResponseParser.java:101)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
02:05:02 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
02:05:02 at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
02:05:02 ... 21 more
02:05:03 ERROR: Error communicating with TestLink. Check your TestLink configuration.


When I restart XAMPP server the error seems to go away for a few hours/days and then it starts happening again. My initial guess is that there needs to be some increase in allowed memory / timeout / ... in the php configuration?

Anyone who has had this before and knows what could be done to fix this? The plugin marks the builds as failed when this happens even though no test cases have failed, which is kind of annoying.

Thanks!
devonk
Advanced user
 
Posts: 16
Joined: Sun Mar 15, 2015 9:43 am

Return to General Testing and Test management



Who is online

Users browsing this forum: No registered users and 1 guest

cron