java - JDBCClient errors on start or after some time in vertx -


the error in question

excuse picture of terminal - project setup pretty bad can't actual logs paste here.

sometimes when start vertx webserver , login, absolutely fine no issues. after time, database request (such logging in again) return error. happens on startup.

the jdbcclient initialised on server load , feel error aws server it's connecting giving timeout signal. there way can check , reinitialise jdbcclient before making request? or there issue somewhere don't know about?

there 2 causes of rejectedexecutionexception

  1. one of causes of rejectedexecutionexception when try execute new task after we’ve shutdown executor.
  2. another case of rejectedexecutionexception, appears when executor cannot take more tasks under responsibility. happens when limit of local “memory” reached.

in case exception causing on line no 108 of jdbcclientimpl.java exec.execute(). here exec object of executorservice causing rejectedexecutionexception because task cannot submitted execution, either because executor has been shutdown or because capacity has been reached.

  1. check if resultset, statement , connection closing or not.
  2. check if initializing jdbcclientimpl multiple times may cause exception.
  3. threadpoolexecutor has finalize() method shuts down executor. given weren’t keeping reference underling executor, seemed strong possibility finalization causing shutdown.

you can check out url rejectedexecutionexception , jdbcclientimpl.java can find getconnection() method source.


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -