Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
3.0b1
-
None
-
None
-
Win XP
Java 1.5.0_06
Description
Problem description:
When this server is running and the client is executed, nothing happens.
The client hangs on the "execute" statement, and neither of them throws any exception or message.
No indication what goes wrong or were the problem exists.
Server code:
###################################################
import java.io.IOException;
import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.common.TypeConverterFactoryImpl;
import org.apache.xmlrpc.server.DynamicHandlerMapping;
import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
import org.apache.xmlrpc.webserver.WebServer;
public class RpcServer {
static int port = 3099;
private WebServer server;
public static void main(String[] args)
{ new RpcServer(); } public RpcServer(){
try
catch (XmlRpcException e)
catch (IOException e)
}
public int loginUser(String userId )
{ System.out.println("In de method"); return 0; }}
###################################################
Server includes following jars:
- commons-logging-1.1.jar
- ws-commons-util-1.0-SNAPSHOT.jar
- xmlrpc-common-3.0b1.jar
- xmlrpc-server-3.0b1.jar
Client code:
###################################################
import java.net.URL;
import java.util.List;
import java.util.Vector;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
public class RpcClient {
static XmlRpcClient xmlrpc;
public static void main( String args[] ) {
try
catch (Exception e)
{ e.printStackTrace(); } }
}
###################################################
Client includes following jars:
- ws-commons-util-1.0-SNAPSHOT.jar
- xmlrpc-common-3.0b1.jar
- xmlrpc-client-3.0b1.jar