apache/dubbo-spring-boot-project

NoSuchMethodError when using dubbo 2.7.9

locuslin opened this issue · 4 comments

dubbo-spring-boot version:2.7.8
dubbo version: 2.7.9

There is an error in DubboAutoConfiguration.java on line 83。

@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
    if (applicationContext instanceof ConfigurableApplicationContext) {
        ConfigurableApplicationContext context = (ConfigurableApplicationContext) applicationContext;
        DubboLifecycleComponentApplicationListener dubboLifecycleComponentApplicationListener
                = new DubboLifecycleComponentApplicationListener();
        dubboLifecycleComponentApplicationListener.setApplicationContext(applicationContext);
        context.addApplicationListener(dubboLifecycleComponentApplicationListener);

        DubboBootstrapApplicationListener dubboBootstrapApplicationListener = new DubboBootstrapApplicationListener();
        dubboBootstrapApplicationListener.setApplicationContext(applicationContext);
        context.addApplicationListener(dubboBootstrapApplicationListener);
    }
}

DubboLifecycleComponentApplicationListener changed its construtor, and it requires ApplicationContext,the same as DubboBootstrapApplicationListener.

臣附议,,赶紧改!!!

this would be fixed in apache/dubbo#7357

2.7.9 还不发布呢?

Dubbo Spring Boot 2.7.9 has been released, pls try upgrade to it