I have one client file clientRPC.java and server file serverRPC.java. Both communicate using TCP protocol and use objectinput and output stream to transfer data.
my clie
You're writing an object with writeObject()
and trying to read it with readUTF()
. Illogical.
writeObject()
must be read with readObject()
.writeUTF()
must be read with readUTF()
.writeXXX()
must be read with readXXX()
, for most values of X.