Test exception when requesting BOTH but stream only has IN for kryo serialization.