ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Hoegg <rho...@isisnetworks.net>
Subject Re: IO Exception with XmlRpcClient
Date Tue, 07 May 2002 17:58:00 GMT
Try to telnet to the server at port 8899 and then paste your xml-rpc 
request into that window.  Your request will need to have a correct 
Content-Length header.  If you can not establish a session on port 8899 
to the server, there is something blocking that in your network 
configuration.

Ryan Hoegg

Anup Chopra wrote:

> 
>
>-----Original Message-----
>From: Anup Chopra
>To: 'rpc-user@xml.apache.org'
>Sent: 5/7/02 5:32 PM
>Subject: FW: IO Exception with XmlRpcClient
>
>
>Just to add I am able to ping the server machine from the client
>machine..no requests are getting through to the server...no requests at
>all...I even started a dummy server(from a previous mail on the list) on
>the server machine still no requests are getting through...
>Also can somebody please pass me the location and procedure to acess the
>archive of this mailing list
>Thanks again
>
>-----Original Message-----
>From: Anup Chopra [mailto:achopra@egain.com]
>Sent: 07 May 2002 17:22
>To: 'rpc-user@xml.apache.org'
>Subject: IO Exception with XmlRpcClient
>
>
>Hi all,
>This is for version 1.0 downloaded from xml.apache.org.
>I am trying to run both client and server on the same machine--and it
>works
>fine
>When I try to run client on a different machine and then--
>I am getting the following stack trace after running execute method
>On XmlRpcClient:
>IO Exception: Operation timed out: connect
>java.io.IOException: Operation timed out: connect
>        at org.apache.xmlrpc.XmlRpcClient$Worker.execute(Unknown Source)
>        at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source)
>        at
>com.egain.bupawrapper.client.KnowledgeClient.main(KnowledgeClient.jav
>a:29)
>
>On XmlRpcClientLite:
>IO Exception: Operation timed out: connect
>java.net.ConnectException: Operation timed out: connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(Unknown Source)
>        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>        at java.net.PlainSocketImpl.connect(Unknown Source)
>        at java.net.Socket.<init>(Unknown Source)
>        at java.net.Socket.<init>(Unknown Source)
>        at
>org.apache.xmlrpc.XmlRpcClientLite$HttpClient.initConnection(Unknown
>Source)
>        at org.apache.xmlrpc.XmlRpcClientLite$HttpClient.<init>(Unknown
>Source)
>        at org.apache.xmlrpc.XmlRpcClientLite$LiteWorker.execute(Unknown
>Source)
>
>        at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source)
>        at
>com.egain.bupawrapper.client.KnowledgeClient.main(KnowledgeClient.jav
>a:29)
>
>thanks a lot for your help
>Cheers
>
>
>here's the code for reference.
>package com.egain.bupawrapper.client;
>
>import java.io.IOException;
>import java.util.Vector;
>import java.util.Enumeration;
>
>import org.apache.xmlrpc.XmlRpc;
>import org.apache.xmlrpc.XmlRpcClient;
>import org.apache.xmlrpc.XmlRpcClientLite;
>
>import org.apache.xmlrpc.XmlRpcException;
>//import com.egain.bupawrapper.server.KnowledgeWrapper;
>public class KnowledgeClient {
>
>    public static void main(String args[]) {
>        try {
>            // Create the client, identifying the server
>            XmlRpcClient client =
>                new XmlRpcClient("http://slopropcanup.egain.com:8899/");
>
>            // Create the request parameters using user input
>            Vector params = new Vector();
>            params.addElement("system");//username
>            params.addElement("password");//password
>            params.addElement("1");//profileID
>            params.addElement("1");//languageID
>
>		//String done =
>client.execute("knowledgeWrapper.synchronize",params);
>			String done = (String) client.execute(new 
>
>String("knowledgeWrapper.synchronize"),params);
>			System.out.println(done);
>
>        } catch (IOException e) {
>            System.out.println("IO Exception: " + e.getMessage(  ));
>	e.printStackTrace();
>        } catch (XmlRpcException e) {
>            System.out.println("Exception within XML-RPC: " +
>e.getMessage(
>));
>	e.printStackTrace();
>
>        }
>    }
>
>}
>
>This message is intended solely for the use of the individual or
>organisation to whom it is addressed.  It may contain legally privileged
>or
>confidential information.  If you have received this message in error,
>please notify the originator immediately.  If you are not the intended
>recipient, you should not use, copy, alter, disclose or rely on the
>contents
>of this message.  All information or opinions expressed in this message
>and/or any attachments are those of the author and are not necessarily
>those
>of eGain Communications Ltd. or its affiliates.  eGain Communications
>Ltd.
>accepts no responsibility for loss or damage arising from its use,
>including
>damage from viruses or other harmful content.
>
>This message is intended solely for the use of the individual or
>organisation to whom it is addressed.  It may contain legally privileged or
>confidential information.  If you have received this message in error,
>please notify the originator immediately.  If you are not the intended
>recipient, you should not use, copy, alter, disclose or rely on the contents
>of this message.  All information or opinions expressed in this message
>and/or any attachments are those of the author and are not necessarily those
>of eGain Communications Ltd. or its affiliates.  eGain Communications Ltd.
>accepts no responsibility for loss or damage arising from its use, including
>damage from viruses or other harmful content.
>



Mime
View raw message