Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

  2. ,

    Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via Atlassian JIRA by Hanis Suhailah, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via GitHub by ekaftan
, 2 years ago
No operations allowed after connection closed.
via openmeetings-user by Lee Saunders, 2 years ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)	at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)	at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)	at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)	at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:146)	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:195)	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:184)	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200)	at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1086)	at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1073)	at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:44)	at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1810)	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:648)