You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Daniel Lewis <dj...@gmail.com> on 2010/03/29 04:39:24 UTC
New Version issues
Hi all,
I have been running a very standard client from the apache libraries and
have found with the latest release that came through from Debian Testing to
have issues when using the client below.
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
try {
config.setServerURL(new URL(xmlrpcServerUrl));
config.setEnabledForExtensions(true);
config.setConnectionTimeout(60 * 1000);
config.setBasicUserName(xmlrpcBasicUserName);
config.setBasicPassword(xmlrpcBasicPassword);
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
return (Object) client.execute(endPoint, params);
} catch (XmlRpcException ex) {
return ex.getMessage();
// return "Error: " + new CrossroadFaults().getMessage(ex.getMessage());
} catch (MalformedURLException ex) {
return ex.getMessage();
//return "An Error has occured, please contact the System Administrator";
} catch (Exception ex) {
return ex.getMessage();
//return "An Error has occured, please contact the System Administrator";
}
The errors that i have been recieving are
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.xmlrpc.client.XmlRpcSun15HttpTransportFactory.getTransport(XmlRpcSun15HttpTransportFactory.java:59)
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:137)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at xmlrpcclient.Utilities.make_XMLRPC_Call(Utilities.java:35)
at xmlrpcclient.testClient.showRun(testClient.java:227)
at
xmlrpcclient.testClient.main(testClient.java:59)XmlRpcClient.properties
Caused by: java.lang.IllegalStateException: Failed to locate resource:
XmlRpcClient.properties
at
org.apache.xmlrpc.client.XmlRpcHttpTransport.<clinit>(XmlRpcHttpTransport.java:70)
... 8 more
Java Result: 1
This is run with Netbeans and is easily fixed by reverting back to the
previous version of apache xmlrpc.
Are there any sugestions? I noticed that it is looking for the
'XmlRpcClient.properties' file in the path but this has been written
programatically.
Any ideas?
Daniel