More specifically, the issue occurs if you are using TCP and creating a new ObjectInputStream or ObjectOutputStream for the same socket's input stream or outputstream more than once.
Each socket should have just ONE ObjectInputStream and ObjectOutputStream associated with it!