java.net.SocketException: Too many open files

Hi
I have an error when I invoke web services from IS to weblogic server in Solaris system.
The fact is the system allows 8192 files descriptors. Each socket created for an HTTP request is not systematically closed correctly (STATUS = CLOSE_WAIT or LAST_ACK). So an exception is throw if the number of files descriptors is too high.
Anyone have an idea of what happen ?

I have the same problem (Solaris8), observed also on Windows XP and Linux platforms. No solution yet :frowning:

I’m having the same issue on Solaris 5.8, IS 6.5 when making SOAP HTTP calls.

Here is the pseudo code that works for me. I have significant number of transactions flowing this way.

webMethods Server side:
Set the content handler to handle mime multipart-related
create a webMethods invoke flow service. this is the service that gets called by the client
set the input to be “bytes”
convert bytes to stream
create mime date from pub.mime.createMimeData
get the BodyPartContent
convert stream to soapbytes
convert bytes to string
convert string to soap data
extract body/header/document/attachment

Client side:
use a tunnel to check if your data is published correctly. (apache soap download lets you view you TCP data)
If needed create the java code using xml parser and SOAP mime
import javax.mail.internet.MimeBodyPart;
import javax.xml.soap.;
import java.io.
;
import java.util.;
import javax.xml.transform.dom.DOMSource;
import com.sun.net.ssl.HostnameVerifier;
import com.sun.net.ssl.HttpsURLConnection;
import java.io.PrintStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.
;
import java.net.*;

HTH

Animesh,

In my situation, webMethods is acting as the client and making an outbound SOAP call. It looks like your scenario is the other way around. Do you have any situations where you are making an output SOAP call using pub.client:soapHTTP?

Thanks,

Brad