apache / dubbo-spring-boot-project

Spring Boot Project for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
5.41k stars 1.88k forks source link

NoSuchMethodError when using dubbo 2.7.9 #780

Closed locuslin closed 3 years ago

locuslin commented 3 years ago

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.

Johnson-Jia commented 3 years ago

臣附议,,赶紧改!!!

AlbumenJ commented 3 years ago

this would be fixed in https://github.com/apache/dubbo/pull/7357

cssliuzhy commented 3 years ago

2.7.9 还不发布呢?

AlbumenJ commented 3 years ago

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