com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via coderanch.com by Unknown author, 2 years ago
Communications link failure Last packet sent to the server was 0 ms ago.
via coderanch.com by Unknown author, 1 year ago
Communications link failure Last packet sent to the server was 0 ms ago.
via yellowfinbi.com by Unknown author, 2 years ago
Communications link failure The last packet successfully received from the server was 3,952,954 milliseconds ago. The last packet sent successfully to the server was 47 milliseconds ago.
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: Communications link failure Last packet sent to the server was 0 ms ago.
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:825)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:112)
at com.insideup.dao.jdbc.mapping.BaseMappingSqlQuery.execute(BaseMappingSqlQuery.java:151)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)
at com.insideup.dao.hibernate.BaseHibernateDAO.save(BaseHibernateDAO.java:26)
at com.insideup.manager.EmailAlertManager.createEmailAlert(EmailAlertManager.java:90)
at com.insideup.manager.EmailAlertManager.saveEmailAlert(EmailAlertManager.java:79)
at com.insideup.manager.LeadManager.deliverAllUnsoldLeads(LeadManager.java:1669)
at com.insideup.process.LeadDeliveryThread.run(LeadDeliveryThread.java:87)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.