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

Solutions on the web

via JBoss Issue Tracker by Jim Tyrrell, 1 year ago
Could not create connection
via Stack Overflow by Sunga
, 2 years ago
via Stack Overflow by pulse
, 2 years ago
Could not create connection
via primefaces.org by Unknown author, 1 year ago
via com.br by Unknown author, 1 year ago
Could not create connection
via frevvo.com by Unknown author, 1 year ago
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4096)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4028)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:951)	at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1717)	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1276)	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2395)	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2428)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2213)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:797)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343)	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397)	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365)	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329)	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302)	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464)	at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:139)	at org.apache.jsp.index_jsp._jspService(index_jsp.java:73)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)	at java.lang.Thread.run(Thread.java:662)