Am caught up with an error and i can't get past it, need some help here.
My application is a batch processing web service client, reads some input rows, sends web service requets, processes the responses and logs it.
The application runs well in normal mode, but under load(more thread count), I get this wierd error and I can't make it go away.
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
Caused by: java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
I have properly closed the connections after each web service calls, but it still says Address in use. Please refer below for the complete stack trace and a piece of the code. Am using SAAJ and JWSDP and am not using AXIS api. Am in a place where i can't switch to the other implementation. I have searched the web but couldn't find any solutions. I am very disappointed that I am at a dead end by using SUN's api and didn't go for AXIS initially unless someone gives me a solution to this.
This is not an error that server is not closing connections properly as I was able to test with SOAPUI and LoadRunner with even higher threads and it ran without problems. SOAPUI and LoadRunner scripts were executed from the same client machine as my application uses. Please help.
Will pooling connections in the client machine is help.
If this is the answer, i am new to pooling connections for web service calls, can someone please give a sample code.