Re: NPE in DBCP when attempting to connect to a database that doesn't exist

2019-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Adam, On 10/9/19 20:59, Adam Rauch wrote: > When attempting to connect to a DataSource that specifies a > database that doesn't exist, Tomcat 8.5.46 throws an informative > SQLException; for example: java.sql.SQLException: Cannot create > PoolableCo

NPE in DBCP when attempting to connect to a database that doesn't exist

2019-10-09 Thread Adam Rauch
When attempting to connect to a DataSource that specifies a database that doesn't exist, Tomcat 8.5.46 throws an informative SQLException; for example: java.sql.SQLException: Cannot create PoolableConnectionFactory (FATAL: database "labkey19.3" does not exist) In the same situation, Tomcat 7.0