hi all here i have 2 program , one is the server and the other is the client. i am having problems with the ObjectInputStream it must read 5 objects "String" but here it is reading one or two Objects and then the connection Closes the Error Message is : connection reset plz help me with it coz i tried every thing .
I had the same problem. It happens when you run the send application, in the main you invoque the method obj.writeObject three times and then terminate, and this automatically "reset" the connection with the receive application.
You only have three write's , if you put more write's the receive application will continue.