posted 12 years ago
Hi
I am sending a object through socket using serialization.The issue is
When I send it over a socket(socket.getOutputStream) and read on the server side ,it gives me java.IO.InvalidClassException.
However if I write in a file and then deserialize it in the same class, in which serialization was done,it works fine
Does this happen that sending object using socket causes errors
Even if I use to deserilaize the file which I created ,it is giving me java.IO.InvalidClassException.
I am using the same jar on the either side of socket.The difference is tthat at client side I am running thru eclipse so using jar in build path and ion server side I have kept the extracted folder from jar and placed in the current directory