java.net.SocketTimeoutException: Socket operation timed out before it could be completed

You may face this exception in the log file of your web application:

java.net.SocketTimeoutException: Socket operation timed out before it could be completed

After investigating in the error, I found that it happens because of the network connectivity. I could fix it by fixing the network cable.