ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzqa <jehanzeb.qay...@gmail.com>
Subject XmlRpcCommonsTransportFactory XmlRpcClientException UnknownHostException: www.w3.org
Date Mon, 16 Feb 2009 12:37:38 GMT

Using below code:
//config
        config.setServerURL(airURL);
        config.setConnectionTimeout(CONNECTION_TIMEOUT);
        config.setReplyTimeout(REPLY_TIMEOUT);
        config.setBasicEncoding(null); //UTF-8
        config.setUserAgent(userAgent);
        config.setBasicUserName(AirPool.getUser());
        config.setBasicPassword(AirPool.getPassword());
//client
        client.setTransportFactory(new
XmlRpcCommonsTransportFactory(client));
        client.setConfig(config);
        client.setTypeFactory(new CustomTypeFactory(client));


i get following error during execute():

org.apache.xmlrpc.client.XmlRpcClientException: Failed to read server's
response: www.w3.org
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:182)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:148)
	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
	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 com.warid.air.AirAPIAdapter.execute(AirAPIAdapter.java:117)
	at com.warid.air.AirAPIAdapter.execute(AirAPIAdapter.java:121)
	at com.warid.happyhour.common.Util.airProvision(Util.java:56)
	at com.warid.happyhour.MainTask.updatePrevHappyHour(MainTask.java:418)
	at com.warid.happyhour.MainTask.createUpdateHappyHour(MainTask.java:367)
	at com.warid.happyhour.MainTask.processProvisionRequest(MainTask.java:290)
	at com.warid.happyhour.MainTask.routeRequest(MainTask.java:177)
	at com.warid.happyhour.MainTask.run(MainTask.java:133)
Caused by: java.net.UnknownHostException: www.w3.org
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.Socket.connect(Socket.java:520)
	at java.net.Socket.connect(Socket.java:470)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
	at sun.net.www.http.HttpClient.New(HttpClient.java:304)
	at sun.net.www.http.HttpClient.New(HttpClient.java:321)
	at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
	at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
	at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
	at
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:178)
	... 14 more
Caused by:
java.net.UnknownHostException: www.w3.org
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.Socket.connect(Socket.java:520)
	at java.net.Socket.connect(Socket.java:470)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
	at sun.net.www.http.HttpClient.New(HttpClient.java:304)
	at sun.net.www.http.HttpClient.New(HttpClient.java:321)
	at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
	at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
	at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
	at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
	at
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:178)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:148)
	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
	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 com.warid.air.AirAPIAdapter.execute(AirAPIAdapter.java:117)
	at com.warid.air.AirAPIAdapter.execute(AirAPIAdapter.java:121)
	at com.warid.happyhour.common.Util.airProvision(Util.java:56)
	at com.warid.happyhour.MainTask.updatePrevHappyHour(MainTask.java:418)
	at com.warid.happyhour.MainTask.createUpdateHappyHour(MainTask.java:367)
	at com.warid.happyhour.MainTask.processProvisionRequest(MainTask.java:290)
	at com.warid.happyhour.MainTask.routeRequest(MainTask.java:177)
	at com.warid.happyhour.MainTask.run(MainTask.java:133)

-- 
View this message in context: http://www.nabble.com/XmlRpcCommonsTransportFactory-XmlRpcClientException-UnknownHostException%3A-www.w3.org-tp22036488p22036488.html
Sent from the Apache Xml-RPC - User mailing list archive at Nabble.com.


Mime
View raw message