jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes PoolableConnectionFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "PoolableConnectionFactory" Watch "PoolableConnectionFactory" New topic
Author

PoolableConnectionFactory

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 302
HI List,

when i am trying to insert the data in the table some times it shows this time of error.
Please help how to slove this type of problem.



org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Data source rejected establishment of connection, message from server: "Too many connections")
java.lang.NullPointerException
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32508
    
214

Do you always close your connections in a finally block? Maybe you have a connection leak?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: PoolableConnectionFactory
 
It's not a secret anymore!