org.hibernate.exception.GenericJDBCException: Cannot open connection

Stack Overflow | Rajesh Sitaula | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Mysql Tomcat java.sql.SQLException - Spring Forum

    spring.io | 2 years ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
  2. 0

    java - Porque o código do Hibernate no Eclipse não se conecta a Base de Dados MySQL?

    com.br | 2 years ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java - Porque o código do Hibernate no Eclipse não se conecta a Base de Dados MySQL?

    com.br | 11 months ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
  5. 0

    JPA+Glassfish+JEE

    openclassrooms.com | 2 years ago
    java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES)

  1. jshakil 3 times, last 4 months ago
  2. jstrayer 6 times, last 5 months ago
  3. rp 18 times, last 1 year ago
  4. batwalrus76 1 times, last 1 week ago
  5. Omya 2 times, last 1 month ago
3 more registered users
28 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    Access denied for user ''@'localhost' (using password: YES)

    at com.mysql.jdbc.SQLError.createSQLException()
  2. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:963)
    2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)
    3. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)
    4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:875)
    5. com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1712)
    6. com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1228)
    7. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)
    8. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)
    9. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)
    10. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)
    11. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    11 frames
  3. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  4. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)
    3 frames
  5. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  6. Hibernate
    DriverManagerConnectionProvider.getConnection
    1. org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
    1 frame
  7. Hibernate
    JDBCTransaction.begin
    1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
    2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
    3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
    4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
    4 frames
  8. Hibernate
    SessionImpl.beginTransaction
    1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
    1 frame
  9. com.demo
    Main.main
    1. com.demo.Main.main(Main.java:25)
    1 frame