DBConfig.main() has thrown a SQLException

java.sql.SQLException
Javadoc

An exception that provides information on a database access error or other errors.

Each SQLException provides several kinds of information:

  • a string describing the error. This is used as the Java Exception message, available via the method getMesasge.
  • a "SQLstate" string, which follows either the XOPEN SQLstate conventions or the SQL:2003 conventions. The values of the SQLState string are described in the appropriate spec. The DatabaseMetaData method getSQLStateType can be used to discover whether the driver returns the XOPEN type or the SQL:2003 type.
  • an integer error code that is specific to each vendor. Normally this will be the actual error code returned by the underlying database.
  • a chain to a next Exception. This can be used to provide additional error information.
  • the causal relationship, if any for this SQLException.
at com.mysql.jdbc.SQLError.createSQLException
(source)
at com.mysql.jdbc.MysqlIO.checkErrorPacket
(source)
at com.mysql.jdbc.MysqlIO.checkErrorPacket
(source)
at com.mysql.jdbc.MysqlIO.checkErrorPacket
(source)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication
(source)
at com.mysql.jdbc.MysqlIO.doHandshake
(source)
at com.mysql.jdbc.ConnectionImpl.coreConnect
(source)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly
(source)
at com.mysql.jdbc.ConnectionImpl.createNewIO
(source)
at com.mysql.jdbc.ConnectionImpl.<init>
(source)
at com.mysql.jdbc.JDBC4Connection.<init>
(source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(source)
at java.lang.reflect.Constructor.newInstance
(source)
at com.mysql.jdbc.Util.handleNewInstance
(source)
at com.mysql.jdbc.ConnectionImpl.getInstance
(source)
at com.mysql.jdbc.NonRegisteringDriver.connect
(source)
at java.sql.DriverManager.getConnection
(source)
at java.sql.DriverManager.getConnection
(source)
at org.opengts.dbtools.DBConnection.getConnection
at org.opengts.dbtools.DBConnection.createStatement
at org.opengts.dbtools.DBConnection.createStatement
at org.opengts.dbtools.DBConnection._executeUpdate
at org.opengts.dbtools.DBConnection.executeUpdate
at org.opengts.dbtools.DBConnection.executeUpdate
at org.opengts.dbtools.DBProvider.createDatabase
at org.opengts.dbtools.DBAdmin.execCommands
at org.opengts.db.DBConfig._main
at org.opengts.db.DBConfig.main
29 frames hidden

Typical Exception Messages

  1. Access denied for user 'office1'@'localhost' (using password: NO)
  2. Access denied for user 'root'@'localhost' (using password : YES)
  3. Access denied for user 'root'@'localhost' (using password: NO)

Origin

DriverManager.getConnection() has thrown a SQLException

java.sql.SQLException
19 frames hidden
java.sql.DriverManager.getConnection
58Web pages

Similar

External results for this pattern (4)

  1. Unknown authorvia sourceforge.net5 months ago
    Access denied for user 'office1'@'localhost' (using password: NO)
    Show stack trace
  2. Access denied for user 'root'@'localhost' (using password: NO)
    Show stack trace
  3. natelaws83via opengts2 years ago
    Access denied for user 'office1'@'localhost' (using password: NO)
    Show stack trace
  4. nandhug05via opengts2 years ago
    Access denied for user 'root'@'localhost' (using password : YES)
    Show stack trace