This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "PoolableConnectionFactory" Watch "PoolableConnectionFactory" New topic
Author

PoolableConnectionFactory

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30390
    
150

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PoolableConnectionFactory