The call to the xml-rpc client failed. testlink excaption | Selenium Forum
M
Posted on 09/01/2016
Hi all,



I m facing following issue,is there any workaround for this.
testlink version :1.9.3

testlink.api.java.client.TestLinkAPIException: The call to the xml-rpc client failed.
at testlink.api.java.client.TestLinkAPIClient.executeXmlRpcMethod(TestLinkAPIClient.java:1266)
at testlink.api.java.client.TestLinkAPIClient.execXmlRpcMethodWithCache(TestLinkAPIClient.java:1195)
at testlink.api.java.client.TestLinkAPIClient.getProjects(TestLinkAPIClient.java:726)
at testlink.api.java.client.TestLinkAPIHelper.getProjectInfo(TestLinkAPIHelper.java:64)
at testlink.api.java.client.TestLinkAPIHelper.getProjectID(TestLinkAPIHelper.java:48)
at testlink.api.java.client.TestLinkAPIClient.reportTestCaseResult(TestLinkAPIClient.java:184)
at testsuite.login.Verifylogin.reportResult(Verifylogin.java:69)
at testsuite.login.Verifylogin.verifyLogin(Verifylogin.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1220)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: org.apache.xmlrpc.XmlRpcException: Failed to create input stream: http://192.168.2.58:4000/Storage1/testlink/lib/api/xmlrpc.php
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:65)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:141)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)
at testlink.api.java.client.TestLinkAPIClient.executeXmlRpcMethod(TestLinkAPIClient.java:1232)
... 32 more
Caused by: java.io.FileNotFoundException: http://192.168.2.58:4000/Storage1/testlink/lib/api/xmlrpc.php
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:63)
... 40 more

URGENT

Regards
abhishek

M
Replied on 10/01/2016

is there any update


M
Replied on 10/01/2016

try this q/a

http://stackoverflow.com/questions/15135345/reporttestcaseresult-gives-testlink-api-java-client-testlinkapiexception#

and can you upload a screen shot.


M
Replied on 13/01/2016

Hi Ashish,

Is there any update for same..

I have done following steps.

http://roadtoautomation.blogspot.in/2013/09/road-to-integration-of-webdriver-test.html

Still getting same error.

please provide me solution.

Urgent


M
Replied on 13/01/2016

can you upload the screen shot.


M
Replied on 14/01/2016

i have update screenshot for exception.
i have also show all jar those i have added
there are some method showing in red color in testlink-api-client . i do not why this method showing red..

i have followed both blog but not able to find solution

1.http://www.softwaretestinghelp.com/testlink-tutorial-3/
2.https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwj52-LI2KnKAhVJ1I4KHfjLBRoQFggoMAI&url=http%3A%2F%2Froadtoautomation.blogspot.com%2F2013%2F09%2Froad-to-integration-of-webdriver-test.html&usg=AFQjCNHyKPkhMS97lpVDLVLhDHKP5K_ugA&sig2=GK41WafXBgGekqR5josiVg&bvm=bv.111677986,d.c2E

Responsive image

M
Replied on 14/01/2016

hi abhishek,

can you upload the project i try to run it myself.


M
Replied on 17/01/2016

i haven't connected to test link but it seems that you're giving the wrong command. and test link can't recognize and can't connect to the test link.