Can anybody explain why this would occur?

I am trying to read in all the objects from a file, and I get the first one, then this error gets thrown

Thanks