Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. BasicDataSource.getConnection() has thrown a SQLException
    Apache Commons DBCP
    0
    1
    0
  2. BasicDataSource.createPoolableConnectionFactory() has thrown a SQLException
    Apache Commons DBCP
    1
    2
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.sql.SQLException: isValid() returned false
4 matching frames hidden
java.sql.SQLException: Cannot create PoolableConnectionFactory (isValid() returned false)
1 matching frame hidden
    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)

External results for this pattern (1)

  1. xuyang198711via GitHub3 years ago
    isValid() returned false
    Show stack trace