【发布时间】:2022-01-18 01:49:48
【问题描述】:
在 vertx 中实现的应用程序遇到了一个特殊问题。我有一个大约 20 个连接的连接池。
一旦在任何请求中遇到 NullPointerException,mysql 连接就会停止响应。
在日志下方找到但不明白为什么这会使 mysql 连接无响应。
Exception in thread "vert.x-eventloop-thread-2" io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException
此外,此异常出现的次数与连接池中的连接数完全相同,之后整个应用程序变得无响应。
【问题讨论】:
标签: java mysql asynchronous vert.x