-
Notifications
You must be signed in to change notification settings - Fork 26.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.6.5问题,ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler#bean #2855
Comments
Thanks for your report, We also found this issue, will be fixed on 2.6.6 |
请问是protocol配置成injvm吗? |
@tswstarplanet 没有,是com.alibaba.dubbo.config.ReferenceConfig#createProxy方法自己查找提供者的 |
@gMan1990 |
能提供demo吗?我自己复现没出现这个问题 |
你先看下这个是不是两处调用,每处调用debug下,看是否和我说的一样:
然后执行invoke方法,看那个bean字段是否为null |
The duplicated issue : #3429 |
This problem still exists in 2.6.6 or 2.7.0, please confirm! |
ReferenceBeanInvocationHandler的invoke就是消费者方法执行后会调用到的方法,它有个init方法用来初始化bean字段,这个方法有两处调用:
因为是测试所以:1处走的是
if (applicationContext.containsBean(referencedBeanName))
里面,不会调用handler.init();
,2处我断点到handler都是null所以也不会调用handler.init();
所以那个bean字段都是null。然后执行invoke方法就是:
The text was updated successfully, but these errors were encountered: