Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to create input stream in XmlRpcClient

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to connect with server using XmlRpcClient.
I am using this code

URL url=new URL("http://bglbg4vscoe01.sonata.local:8000/www/bugzilla/xmlrpc.cgi");
username="abc";
password="abc";

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();

//set the server url and username and password
config.setServerURL(url);
config.setBasicUserName(userName);
config.setBasicPassword(password);

after that I am calling the execute method()
int result = (Integer)client.execute("TestCaseRun.create",
params);

//param contains some values for Testopia


after that if i run the class then I got this Exceptions


org.apache.xmlrpc.XmlRpcException: Failed to create input stream: http://bglbg4vscoe01.sonata.local:8000/www/bugzilla/xmlrpc.cgi
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 lib.TestCaseRun.makeTestCaseRun(TestCaseRun.java:154)
at lib.TestOPI.main(TestOPI.java:16)
Caused by:
java.io.FileNotFoundException: http://bglbg4vscoe01.sonata.local:8000/www/bugzilla/xmlrpc.cgi
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:63)
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 lib.TestCaseRun.makeTestCaseRun(TestCaseRun.java:154)
at lib.TestOPI.main(TestOPI.java:16)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic