When I connect to a database using a connection pool I get this exception.
So then I tried connecting to the database using the basic Class.forName(); and DriverManager method I was able to do so.. why is this happening ?
This problem may arise wherever a connection pool is involved. The reason for this is as follows.
The Reason:
The Solution:
You can reset the connection pool- This is the best option. This would delete the current broken Connections residing in the pool and forcefully create a new Connection Pool with new connection objects inside them.
You can restart the application server. Not recommended.(You can't keep restarting application servers in Production)
Reference Link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.