首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,建议使用 Markdown 语法。
版本信息
- Jdk版本:1.8.0_411
- SpringBoot版本:2.3.2.RELEASE
- DynamicTp版本:1.1.7
- 配置中心版本:nacos 1.4.0
问题描述
ExecutorService executor = (ExecutorService)ReflectionUtil.getFieldValue(AbstractConnectionFactory.class, "executorService", v);
if (Objects.nonNull(executor) && executor instanceof ThreadPoolExecutor) {
String tpName = this.genTpName(k);
this.enhanceOriginExecutor(tpName, (ThreadPoolExecutor)executor, "executorService", v);
}
通过反射拿到的executor为null,导致无法增强。
文字描述、截图、粘代码方式
- 配置文件:
- 代码使用步骤:
- 报错信息:
- 猜测可能原因:
复现步骤
- xxx
- xxx
其他信息
- xxx
- xxx
首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,建议使用 Markdown 语法。
版本信息
问题描述
ExecutorService executor = (ExecutorService)ReflectionUtil.getFieldValue(AbstractConnectionFactory.class, "executorService", v);
if (Objects.nonNull(executor) && executor instanceof ThreadPoolExecutor) {
String tpName = this.genTpName(k);
this.enhanceOriginExecutor(tpName, (ThreadPoolExecutor)executor, "executorService", v);
}
通过反射拿到的executor为null,导致无法增强。
文字描述、截图、粘代码方式
复现步骤
其他信息