• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PoolableConnectionFactory

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you always close your connections in a finally block? Maybe you have a connection leak?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic