Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get a connection from pool of a PoolingDataSource #74

Closed
thebhushanp opened this issue Dec 9, 2016 · 1 comment
Closed

Unable to get a connection from pool of a PoolingDataSource #74

thebhushanp opened this issue Dec 9, 2016 · 1 comment

Comments

@thebhushanp
Copy link

I have deployed web application in Tomcat7. Everything was working fine for past 1 year. Now out of sudden I am getting this exception.
java.sql.SQLException: unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource 5GV0UH57 with 1 connection(s) (1 still available) -failed-

Any thoughts on why this is happening ?

@lorban
Copy link
Contributor

lorban commented Dec 9, 2016

Your PoolingDataSource has the failed marker set, hence it refuses to serve connections while it stays in that state.

There a two ways the state can be set to failed:

  • someone manually marked the pool as failed via the setFailed() method or via the JMX MBean
  • the recoverer failed got some exception while doing its job on that resource so it marked it as failed

In the case of transient errors, the next recoverer scan would clean the flag so the pool would stay unavailable only for a configurable time (60 seconds by default IIRC). In all cases, the recoverer prints logs indicating why marked a resource as failed, that is where you should start figuring out what's going on.

@lorban lorban closed this as completed Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants