Sunday 13 January 2013

java.lang.ClassNotFoundException: javax.transaction.Synchronization

,

Exception: 

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Access denied for user ''@'localhost' to database 'school' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775) at com.mysql.jdbc.Connection.(Connection.java:1555) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:154)...

Reason 

  1. your username and password are incorrect
  2. your username does not have enough privilege on database
  3. you might be trying to access wrong database.

Possible solution : 

  1. Check your username and password
  2. Check privilege assigned to your username or role from which you are trying to access database.you might not be granted permission to access the database
  3. Check the database you are trying to access.you might be trying to access wrong database.

0 comments to “ java.lang.ClassNotFoundException: javax.transaction.Synchronization”

Post a Comment