ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EXT-Raiteri, Ashley L" <ashley.l.rait...@boeing.com>
Subject RE: Exception on server shutdown
Date Wed, 01 May 2002 20:39:57 GMT
try removing the handler before you call shutdown

-----Original Message-----
From: ryan.cuprak@kodak.com [mailto:ryan.cuprak@kodak.com]
Sent: Wednesday, May 01, 2002 1:06 PM
To: rpc-user@xml.apache.org
Subject: Exception on server shutdown


From: Ryan D. Cuprak

When I go to shutdown the xml-rpc webserver I get the following exception:
Closing XML-RPC server socket.
Exception in XML-RPC listener loop (java.net.SocketException: Socket
closed).
Closing XML-RPC server socket.
java.lang.NullPointerException
     at org.apache.xmlrpc.WebServer.run(WebServer.java)
     at java.lang.Thread.run(Thread.java:484)

Code to start the server (interface thread)
mServer = new WebServer(mClientPort);
mServer.addHandler("partylineclient",new RPCHandler() );
Thread thrd = new Thread(mServer);
 thrd.start();

Code to shutdown the server (interface thread)
mServer.shutdown();

Any idea why I am getting this exception?

Thanks,
-Ryan



Mime
View raw message