TestLink API Error with Hudson TestLink Plugin

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

TestLink API Error with Hudson TestLink Plugin

Postby silvercolt45 » Tue Jan 18, 2011 10:28 pm

I am getting the following error when attempting to use the Hudson TestLink Plugin http://goo.gl/OHwE2 with the TestLink API.

Code: Select all
Retrieving TestLink details about Test Project, Test Plan and Build.
FATAL: Error creating test project: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.
br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error creating test project: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.
   at br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:134)
   at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestProjectByName(TestLinkAPI.java:347)
   at hudson.plugins.testlink.finder.AutomatedTestCasesFinder.retrieveTestLinkData(AutomatedTestCasesFinder.java:157)
   at hudson.plugins.testlink.finder.AutomatedTestCasesFinder.findAutomatedTestCases(AutomatedTestCasesFinder.java:127)
   at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:447)
   at hudson.plugins.m2extrasteps.M2ExtraStepsWrapper.executeBuildSteps(M2ExtraStepsWrapper.java:166)
   at hudson.plugins.m2extrasteps.M2ExtraStepsWrapper.setUp(M2ExtraStepsWrapper.java:126)
   at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:521)
   at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
   at hudson.model.Run.run(Run.java:1362)
   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:405)
   at hudson.model.ResourceController.execute(ResourceController.java:88)
   at hudson.model.Executor.run(Executor.java:145)
Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.
   at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
   at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
   at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
   at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
   at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
   at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
   at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
   at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
   at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:124)
   at br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:126)
   ... 12 more
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
   at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
   ... 21 more


The following is my Hudson project configuration for invoking the TestLink API. On the Hudson configuration level I have provided the full path to the TestLink API PHP file (http://[TESTLINKSERVER]/lib/api/xmlrpc.php ) and the private dev key found in the TestLink "personal" screen for my user account (admin privileges).

SCREENSHOT = http://ScrnSht.com/swljpq

Can anyone help with figuring out why I am getting the failure to create project error, why is the API trying to create a project anyway?

Thank you, if more information is needed let me know.
silvercolt45
Advanced user
 
Posts: 33
Joined: Tue Jan 20, 2009 4:57 pm
Location: Las Vegas

Re: TestLink API Error with Hudson TestLink Plugin

Postby fman » Wed Jan 19, 2011 10:29 am

TestLink Dev Team is not able to help on this, we have not developed the plugin
fman
Member of TestLink Community
 
Posts: 3062
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink API Error with Hudson TestLink Plugin

Postby silvercolt45 » Wed Jan 26, 2011 4:43 pm

I understand, but I am not sure the error I am receiving is related to the plugin or is due to the TestLink API. I was hoping if anyone else has run into this issue they could share any found solutions; even any possible reasons why this could be happening. Thanks!
silvercolt45
Advanced user
 
Posts: 33
Joined: Tue Jan 20, 2009 4:57 pm
Location: Las Vegas

Re: TestLink API Error with Hudson TestLink Plugin

Postby fman » Thu Jan 27, 2011 10:45 am

IMHO the finger has to be pointed initially to hudson plugin
fman
Member of TestLink Community
 
Posts: 3062
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink API Error with Hudson TestLink Plugin

Postby kinow » Thu Jan 27, 2011 12:24 pm

Hi, the TestLink Hudson Plug-in project is hosted and maintained under Hudson project.

silvercolt45, could you open an issue for it in Hudson JIRA? The link is in http://wiki.hudson-ci.org/display/HUDSO ... ink+Plugin, see 'Open Issues'.

Cheers
kinow
TestLink user
 
Posts: 1
Joined: Thu Aug 19, 2010 2:29 pm


Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 1 guest