wood burning stoves*
The moose likes JSP and the fly likes The driver has not received any packets from the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "The driver has not received any packets from the server" Watch "The driver has not received any packets from the server" New topic
Author

The driver has not received any packets from the server

Steve kuan
Greenhorn

Joined: Jul 25, 2012
Posts: 2
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: 12759
    
    5
My advice - get that code out of JSP and into a support class that can be tested outside the servlet/jsp environment.

Bill
Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136



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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: The driver has not received any packets from the server
 
Similar Threads
Unable to find specific product
Login Code Error
user authentication servlet problem
Login Servlet
Help with this code!