Make sure your connection option map includes Options.MAX_INBOUND_MESSAGE_SIZE with a value of 4096. This will prevent the problem.
Certain message can produce oversize exceptions.