Subject Java: Cannot get a connection, pool exhausted
Author Luke Young
Hi,

I am trying to connect to my Firebird database from Java, but I get
the following error message:

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
pool exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)

I am using this driver: org.firebirdsql.jdbc.FBDriver

And this Database URL:
jdbc:firebirdsql:localhost/3050:C:\\Subfolder\\Subfolder\\THEDB.FDB

This is the first time I have tried to connect to a firebird DB from a
Java app so I am a little bit lost.

Thanks

Luke