I am trying to use web services in our project in websphere server, In this i am using swing as client to connect the
EJB, which is running thru web services. i can able to connect EJB and get the response from websphere server using web services. The below code is in EJB as business method.
public Vector getData(){
Vector v = new Vector();
for(int i=0;i lt; 20000;i++)
v.add(new DataObject("String"));
return v;
}
public class DataObject{
String str = null;
public DataObject(String data){
str = data;
}
public String getData(){
return str;
}
}
I have used SOAP.jar in the client side.
I have deployed this web services application in websphere, which is installed in windows 2000 and tested with
java swing client program and getData() method's for loop count above 30,000 in windows 2000, it was working fine. but at the same time, i deployed the same web services application in OS/400 version V5R1M0. and tested the application using same java swing client, it is working but if i increase the getData() method's for loop count above 1500, it throws Exception in client side as well as in server side as follows.
Client side Exception:
Exception in
thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Connec
tion reset by peer: JVM_recv in socket input stream read; targetException=java.n
et.SocketException: Connection reset by peer: JVM_recv in socket input stream re
ad]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source
)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at proxy.soap.TESTBeanProxy.getJobSchedule(TESTBeanProxy.java:71)
at proxy.soap.TESTBeanProxy.main(TESTBeanProxy.java:216)
Server side Exception:
[12/26/03 19:25:16:445 UTC] 439ee86c WebGroup E SRVE0026E: [
Servlet Error]-[Broken pipe.]: java.io.IOException: Broken pipe.
java/lang/Throwable.< init>(Ljava/lang/String
V+4 (Throwable.java:90)
java/lang/Exception.< init>(Ljava/lang/String
V+1 (Exception.java:38)
java/io/IOException.< init>(Ljava/lang/String
V+1 (IOException.java:43)
java/net/SocketOutputStream.write([BII)V+1 (SocketOutputStream.java:83)
com/ibm/sslite/s.a(I[BIII)V+0 (:??)
com/ibm/sslite/b.write([BII)V+0 (:??)
com/ibm/jsse/b.write([BII)V+0 (:??)
com/ibm/ws/io/Stream.write([BIIZ)V+0 (Stream.java:26)
com/ibm/ws/io/WriteStream.flushMyBuf(Z)V+0 (WriteStream.java:143)
com/ibm/ws/io/WriteStream.flush()V+0 (WriteStream.java:135)
com/ibm/ws/http/ResponseStream.flush()V+0 (ResponseStream.java:323)
com/ibm/ws/io/WriteStream.flush()V+0 (WriteStream.java:135)
com/ibm/ws/webcontainer/http/HttpConnection.flush()V+0 .............
Please help me to solve the problem.
Thanks,
Raja