Fórumok

Java.sql.SQLException

thumbnail
Praveen P, módosítva 11 év-val korábban

Java.sql.SQLException

Regular Member Bejegyzések: 100 Csatlakozás dátuma: 2012.02.21. Legújabb bejegyzések
How to resolve this exception?


11:10:56,062 WARN [BasicResourcePool:1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@853266 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (10). Last acquisition attempt exception:
java.sql.SQLException: Access denied for user 'lportal'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
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:2748)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)




Thanks in advance
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Java.sql.SQLException

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Check if you can login to the database using user/password you provided and create a table in the liferay database.
thumbnail
Praveen P, módosítva 11 év-val korábban

RE: Java.sql.SQLException

Regular Member Bejegyzések: 100 Csatlakozás dátuma: 2012.02.21. Legújabb bejegyzések
ya it is working fine for some portlet but not responding for some other portlets

i created users and details of user information is getting stored perfectly in user_ table
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Java.sql.SQLException

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
In which portlets are it working and for which is it not working?

java.sql.SQLException: Access denied for user 'lportal'@'localhost' (using password: YES)


This implies the user you're using to access mysql database does not have proper privilege.
thumbnail
Jitendra Rajput, módosítva 11 év-val korábban

RE: Java.sql.SQLException

Liferay Master Bejegyzések: 875 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
As per the log issue is with your credentials only
thumbnail
Danial Mustofa Habibi, módosítva 11 év-val korábban

RE: Java.sql.SQLException

Regular Member Bejegyzések: 141 Csatlakozás dátuma: 2011.11.01. Legújabb bejegyzések
Praveen P:
How to resolve this exception?


11:10:56,062 WARN [BasicResourcePool:1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@853266 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (10). Last acquisition attempt exception:
java.sql.SQLException: Access denied for user 'lportal'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
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:2748)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)




Thanks in advance

problem occur because your credential..check again the user name and password, or if using custom portlet maybe your ext-spring?
Chennamma Rathode, módosítva 8 év-val korábban

RE: Java.sql.SQLException

Junior Member Bejegyzések: 45 Csatlakozás dátuma: 2015.08.05. Legújabb bejegyzések
Hi I'm also getting the same error. plz help me regarding this.
thumbnail
David H Nebinger, módosítva 8 év-val korábban

RE: Java.sql.SQLException

Liferay Legend Bejegyzések: 14915 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
This is a 3 year old zombie thread that you've just brought back to life.

I doubt that you are having the same problem that folks 3 years ago were having anyway. Different versions and all. Maybe your problem resembles this, but that doesn't mean it's the same.
Chennamma Rathode, módosítva 8 év-val korábban

RE: Java.sql.SQLException

Junior Member Bejegyzések: 45 Csatlakozás dátuma: 2015.08.05. Legújabb bejegyzések
I'm new to liferay now i'm using liferay 6.2 version...Facing same exception unable to start the server.