As per the error stacktrace, your connection to MySQL server is lost.
>root cause
>com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
No operations allowed after connection closed.
Connection was implicitly closed due to underlying exception/error:
** BEGIN NESTED EXCEPTION **
>com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
MESSAGE: Communications link failure
>Last packet sent to the server was 43 ms ago.
>STACKTRACE:
>com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
It is very clear that the root cause is Communications link failure
.
Try pinging your database server and see if you are able to connect.
Else resolve the network issue and then connect. No alternatives for this.
You can issue a light weight ping
to your database server to check the connection availability.
Please read following discussion and articles:
- Ping MySQL Server
- Ping syntax and example
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…