The driver has not received any packets from the server
Steve kuan
Greenhorn
Joined: Jul 25, 2012
Posts: 2
posted
0
Hi there,
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
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
1
My advice - get that code out of JSP and into a support class that can be tested outside the servlet/jsp environment.
The driver has not received any packets from the server. Exception is ;com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure"
Add mysqlconnector jar file in the application library
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: The driver has not received any packets from the server