End of file (39)

You tried to read on a stream whereas there is no data to read anymore.