don't understand what you mean with "It gets stuck on socketChannel.read();". Exception? Hung? Garbage?