aspose file tools*
The moose likes XML and Related Technologies and the fly likes Failed to create input stream in XmlRpcClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Failed to create input stream in XmlRpcClient" Watch "Failed to create input stream in XmlRpcClient" New topic
Author

Failed to create input stream in XmlRpcClient

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 79
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)
 
 
subject: Failed to create input stream in XmlRpcClient
 
Similar Threads
need help with apache's XmlRpcServlet example...
Getting response parsing exceptions[Content is not allowed in prolog]
client program using apache xmlrpc libraries
Struct array
Exception in thread "AWT-EventQueue-1"