• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The driver has not received any packets from the server

 
Steve kuan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic