You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by di...@codejawa.com on 2002/01/31 15:41:02 UTC

Error opening socket when running multi-threaded SOAP client

Hello All,

To test the SOAP server, I modify the apache soap's sample of
addressbook, i.e. addressbook class. I make the class implements
Runnable, then make some thread.

then as usual I run it by using:
java samples.addressbook.GetAddressThread
http://localhost:8080/soap/servlet/rpcrouter "John B. Good"

my result:
for 1-20 thread, the results are okay.
for +21 thread, I got this multiple error messages:

<preceded with some other 123 Main Street....>

123 Main Street
Anytown, NY 12345
(123) 456-7890

Caught SOAPException (SOAP-ENV:Client): Error opening socket: Connection refused
: connect
Caught SOAPException (SOAP-ENV:Client): Error opening socket: Connection refused
: connect
Caught SOAPException (SOAP-ENV:Client): Error opening socket: Connection refused
: connect
Caught SOAPException (SOAP-ENV:Client): Error opening socket: Connection refused
: connect

123 Main Street
Anytown, NY 12345

<continued with another 123....>

At first, I suspected the problem is with the Tomcat, but it's not.
because I call a servlet (that the doProcess() takes processing about
6-7 seconds) from similar multi-threaded java classes, even for 50+
threaded, no error messages are generated.

What might be the problem? Please help me point out the solution.
I'm using Tomcat 3.2.1, Apache Soap 2.2, jdk 1.3.1, Windows 2000, and
SoapServer & SoapClient resides locally.

Thank you very much in advance.

-- 
Best regards,
 dion                            
mailto:dion@codejawa.com