If all the results were already fetched, you get the same Exception as trying to iterate again. If it is the first thing you do to the result set, it just works.