I'm having an error when I attempt to connect to a minecraft server, and it appears to be java related- when I join, I cannot seem to edit the enviroment, or message people, and around 10 to 30 seconds in, the game crashes and I get this message

"Internal Exception: java.net.SocketException: Connection reset by peer : socket write error"

Any suggestions?