You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sampath <sa...@yahoo.com> on 2003/12/18 02:46:40 UTC

Too many open files

Hi all,

I have been using axis for client and server webservice calls. We are running into this issue of "Too many open files" after we run 1000 transactions.

I have tried using the latest CommonsHTTPSender written by you but the same error appears and it looks more like a issue on the server side. Do you have any idea about it? Please let me know. I have been struggling to figure this out.

This is the code i have to make the socket call

if (super.cachedEndpoint == null) {

throw new org.apache.axis.NoEndPointException();

}







org.apache.axis.client.Call _call = createCall(); 





_call.setOperation(_operations[0]);

_call.setUseSOAPAction(true);

_call.setSOAPActionURI("");

_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);

_call.setOperationName(new javax.xml.namespace.QName("http://websvc.sabgi", "getGPSLocation"));

setRequestHeaders(_call);

setAttachments(_call);

System.out.println("Before");

java.lang.Object _resp = _call.invoke(new java.lang.Object[] {locInfoReq});

System.out.println("After");





HttpMethodBase method = (HttpMethodBase)_call.getMessageContext().getProperty("method");

method.releaseConnection();

if (_resp instanceof java.rmi.RemoteException) {

throw (java.rmi.RemoteException)_resp;

}

else {

extractAttachments(_call);

try {

return (LocInfoRsp) _resp;

} catch (java.lang.Exception _exception) {

return (LocInfoRsp) org.apache.axis.utils.JavaUtils.convert(_resp, LocInfoRsp.class);

}

}

}

 

will appreciate any help. Need to fix this for a production release.

 

thanks,

sampath

verizon



---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing