out of bound exception / cancelledKey exception