Read the API for ConcurrentModificationException, in particular the mention of iterators, which may be the problem here. Your variables are not well defined in the above, so this is a guess but you...