how to fix internal exception java.net.socketexception