org.postgresql.util.PSQLException: FATAL: sorry, too many clients already

Stack Overflow | Blankman | 3 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Pool de conexões não funciona como deveria!!!

    com.br | 1 year ago
    org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.postgresql.util.PSQLException

    FATAL: sorry, too many clients already

    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication()
  2. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:291)
    2. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
    3. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
    4. org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
    5. org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    6. org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
    7. org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
    8. org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
    9. org.postgresql.Driver.makeConnection(Driver.java:393)
    10. org.postgresql.Driver.connect(Driver.java:267)
    10 frames
  3. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:582)
    2. java.sql.DriverManager.getConnection(DriverManager.java:185)
    2 frames
  4. BoneCP :: Core Library
    BoneCPDataSource.getConnection
    1. com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:363)
    2. com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
    3. com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
    3 frames
  5. SLICK
    JdbcBackend$BaseSession.close
    1. scala.slick.jdbc.JdbcBackend$DatabaseFactoryDef$$anon$4.createConnection(JdbcBackend.scala:47)
    2. scala.slick.jdbc.JdbcBackend$BaseSession.conn$lzycompute(JdbcBackend.scala:302)
    3. scala.slick.jdbc.JdbcBackend$BaseSession.conn(JdbcBackend.scala:302)
    4. scala.slick.jdbc.JdbcBackend$BaseSession.close(JdbcBackend.scala:316)
    4 frames
  6. scala.slick.backend
    DatabaseComponent$DatabaseDef$class.withSession
    1. scala.slick.backend.DatabaseComponent$DatabaseDef$class.withSession(DatabaseComponent.scala:31)
    1 frame
  7. SLICK
    JdbcBackend$DatabaseFactoryDef$$anon$4.withSession
    1. scala.slick.jdbc.JdbcBackend$DatabaseFactoryDef$$anon$4.withSession(JdbcBackend.scala:46)
    1 frame
  8. com.exampleapp.services
    UserServiceImpl.getById
    1. com.exampleapp.services.UserServiceImpl.getById(UserService.scala:37)
    1 frame
  9. controllers
    UsersController$$anonfun$show$1.apply
    1. controllers.UsersController$$anonfun$show$1.apply(UsersController.scala:84)
    2. controllers.UsersController$$anonfun$show$1.apply(UsersController.scala:76)
    2 frames
  10. Play
    ActionBuilder$$anonfun$apply$10.apply
    1. play.api.mvc.ActionBuilder$$anonfun$apply$10.apply(Action.scala:221)
    2. play.api.mvc.ActionBuilder$$anonfun$apply$10.apply(Action.scala:220)
    2 frames
  11. controllers
    ActionWithContext$.invokeBlock
    1. controllers.ActionWithContext$.invokeBlock(BaseController.scala:42)
    1 frame
  12. Play
    Action$$anonfun$apply$1$$anonfun$apply$4.apply
    1. play.api.mvc.ActionBuilder$$anon$1.apply(Action.scala:309)
    2. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:109)
    3. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:109)
    4. play.utils.Threads$.withContextClassLoader(Threads.scala:18)
    5. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:108)
    6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:107)
    6 frames
  13. Scala
    Option.map
    1. scala.Option.map(Option.scala:145)
    1 frame
  14. Play
    Action$$anonfun$apply$1.apply
    1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:107)
    2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:100)
    2 frames
  15. Play Iteratees
    Iteratee$$anonfun$flatMap$1$$anonfun$apply$13.apply
    1. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:481)
    2. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:481)
    3. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:517)
    4. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:517)
    5. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$13.apply(Iteratee.scala:493)
    6. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$13.apply(Iteratee.scala:493)
    6 frames
  16. Scala
    Future$PromiseCompletingRunnable.run
    1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    2 frames
  17. Akka Actor
    ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
    1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42)
    2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
    2 frames
  18. Scala
    ForkJoinWorkerThread.run
    1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    4 frames