I created an ObjectInputSteam and ObjectOutputStream on a blocking SocketChannel and am trying to read and write concurrently. My code is
ObjectInputSteam
ObjectOutputStream
SocketChannel
This seems to be a bug in java.nio.channels.Channels (thanks to Tom Hawtin; post it as an answer next time). A good description and workaround are described here (actually a duplicate of the bug Tom listed):
java.nio.channels.Channels
I tested the workaround and it works.