I'm trying to use the below stream wrap (see code) when transporting a serialized object from a client to a server and vice versa. However it halts the application. If I dont wrap the socket streams using the Buffered Streams there is no problem at all. Why is that? The wrapping works fine when writing/reading from files on the disk.
ObjectOutputStream out = new ObjectOutputStream(
ObjectInputStream in = new ObjectInputStream(