Java Error Messages and Solutions
Pages - Menu
(Move to ...)
Home
▼
Friday, April 15, 2011
java.sql.SQLException: Access denied for user
›
The full error message may be : java.sql.SQLException: Access denied for user 'root'@'localhost' (using password : YES) ...
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database
›
Trying to connect to a MySQL server from Java? But seeing the error "Unknown database"? The reason is that the database does not...
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
›
This error message may include the following text also: "The last packet sent successfully to the server was 0 milliseconds ago. The ...
ClassNotFoundException: com.mysql.jdbc.Driver
›
This error occurs when the required JDBC driver file is not in the CLASSPATH. Also, if the driver name is not correct ClassNotFoundException...
2 comments:
Sunday, April 10, 2011
call to super must be first statement in constructor
›
The error message is very clear actually: i) We can call super in the constructor of a subclass ii) If we call super in the constructor o...
1 comment:
Friday, October 30, 2009
java.lang.ArrayIndexOutOfBoundsException
›
It's a very common runtime error message or exception we face when we use array wrongly. Very specifically this exception is thrown to ...
array dimension missing
›
'array dimension missing' is shown when the array size is not specified while allocating memory for the array or creating an array. ...
illegal initializer
›
You may see this error for writing wrong expression to initialize an array. See the code below: int data={42,15,27,20,19}; If you compile...
7 comments:
incompatible types
›
1. Sometimes we may get the following error message in an 'if' (selection) structure. incompatible types found : int required: bo...
1 comment:
Friday, August 28, 2009
cyclic inheritance involving ...
›
public class Person extends Employee { private String firstName; private String lastName; public Person(String firstName,String lastName...
‹
›
Home
View web version