aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 29285
    
140

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
 
Similar Threads
Cannot create PoolableConnectionFactory
Petclinic of Spring2.5.6 with MYSQL and GLASSFISH
Setting pool size in DBCP for connection pooling?
Can I create connection pooling with data sources using sybase driver(jconn2.jar)?
HTTP Status 500 - Cannot create PoolableConnectionFactory