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

Solutions on the web

via GitHub by xuyang198711
, 2 years ago
Cannot create PoolableConnectionFactory (isValid() returned false)
via Stack Overflow by user2683906
, 2 years ago
Cannot create PoolableConnectionFactory (I/O-Fehler: The Network Adapter could not establish the connection)
via Stack Overflow by Basit
, 2 years ago
Cannot create PoolableConnectionFactory (Login failed for user 'xxx'. ClientConnectionId:31a195f7-f140-49dc-9beb-22e5d097fbf7)
java.sql.SQLException: Cannot create PoolableConnectionFactory (isValid() returned false) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2291) at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038) at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533) at com.dtdream.vehicle.util.ConnectionUtil.getTempConnection(ConnectionUtil.java:97) at com.dtdream.vehicle.util.ConnectionUtil.main(ConnectionUtil.java:68)Caused by: java.sql.SQLException: isValid() returned false at org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:284) at org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357) at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287) ... 4 more