The driver has not received any packets from the server
Joined: Jul 25, 2012
I am currently doing an web application which required data to be retrieved from the MySQL database. I am currently using eclipse EE to write my
JSP scripts. But there is something wrong with the server connection.
Here's my code
The system is always printing the " You are not an authentic licensee" even I am submitting the right details to be database. The console printing the message of "The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Exception is ;com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure"
Please advise. Thanks in advance
Author and all-around good cowpoke
Joined: Mar 22, 2000
My advice - get that code out of JSP and into a support class that can be tested outside the servlet/jsp environment.