OK, I understand the exception itself, but not why it's being raised. Basically what I have is a couple of tables that I need to update from flat files so I build a list of objects from the flat file then loop through the that list to retrieve the database by an ID using a for-each loop. Since I am
testing, the result set only has six cases in it and updating the first one seems okay, but when the loop iterates the second time and the new result set is attempting to be populated I get the exception. I would have expected it on a save or update, but not on retrieving the results of a named query. So, for instance...
Debugging shows the exception occurs at line three of the second iteration.
I hope this makes sense. TIA.