This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOAPExceptionImpl: Message send failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAPExceptionImpl: Message send failed" Watch "SOAPExceptionImpl: Message send failed" New topic

SOAPExceptionImpl: Message send failed

Kasi Viswan
Ranch Hand

Joined: Sep 27, 2008
Posts: 42

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. com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
Caused by: Address already in use: connect
at Method)
at 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.

Stack Trace:

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.

I agree. Here's the link:
subject: SOAPExceptionImpl: Message send failed
It's not a secret anymore!