java - JDBCClient errors on start or after some time in vertx -
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
- one of causes of
rejectedexecutionexceptionwhen try execute new task after we’ve shutdown executor. - 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.
- check if
resultset,statement,connectionclosing or not. - check if initializing
jdbcclientimplmultiple times may cause exception. - 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
Post a Comment