You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "MingKaBum (GitHub)" <gi...@apache.org> on 2019/12/28 13:24:07 UTC

[GitHub] [dubbo] MingKaBum opened issue #5551: Dubbo的2.6.5版本使用AnnotationBean扫描包时,ServiceBean的publishExportEvent方法异常

- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.6.5
* Spring boot version: 2.1.8.RELEASE
* Java version: 1.8

### Steps to reproduce this issue

1. 项目启动过程中,扫描到Service注解的类;
2. 在export()的过程中,在2.6.5版本新加了publishExportEvent();的操作;
3. 内部的方法是ServiceBeanExportedEvent的事件监听;
4.applicationEventPublisher.publishEvent(exportEvent);这个方法的applicationEventPublisher为null,抛出了空指针异常;
5.ServiceBean方法实现了ApplicationEventPublisherAware接口,但是却没有调用其中的方法setApplicationEventPublisher方法;

### Message
萌新一个,最近在学习Dubbo,遇到这个问题,自己查了很多资料没有解决,还请各位大佬帮忙看一下,感谢。

[ Full content available at: https://github.com/apache/dubbo/issues/5551 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [dubbo] GungnirLaevatain commented on issue #5551: Dubbo的2.6.5版本使用AnnotationBean扫描包时,ServiceBean的publishExportEvent方法异常

Posted by "GungnirLaevatain (GitHub)" <gi...@apache.org>.
ApplicationEventPublisherAware接口在spring环境下会由ApplicationContextAwareProcessor进行处理的

[ Full content available at: https://github.com/apache/dubbo/issues/5551 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [dubbo] MingKaBum closed issue #5551: Dubbo的2.6.5版本使用AnnotationBean扫描包时,ServiceBean的publishExportEvent方法异常

Posted by "MingKaBum (GitHub)" <gi...@apache.org>.
[ issue closed by MingKaBum ]

[ Full content available at: https://github.com/apache/dubbo/issues/5551 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo] MingKaBum commented on issue #5551: Dubbo的2.6.5版本使用AnnotationBean扫描包时,ServiceBean的publishExportEvent方法异常

Posted by "MingKaBum (GitHub)" <gi...@apache.org>.
> ApplicationEventPublisherAware接口在spring环境下会由ApplicationContextAwareProcessor进行处理的



[ Full content available at: https://github.com/apache/dubbo/issues/5551 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org