java.net.SocketException: Broken pipe generally occurs when you attempt to write into the connection, which has already been closed on the other end. Check your implementation by tracing the...