judypol opened a new issue, #15575: URL: https://github.com/apache/dubbo/issues/15575
### Pre-check - [x] I am sure that all the content I provide is in English. ### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version Dubbo java 3.3.2, JDK21 ### Steps to reproduce this issue use the pom: <dependency>--> <groupId>org.apache.dubbo</groupId>--> <artifactId>dubbo-spring-boot-starter</artifactId>--> </dependency>--> ### What you expected to happen 2025-07-18 08:54:16.035 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext pt[] tid[] - Exception encountered during context initialization - cancelling refresh attempt: java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.metrics.report.MetricsReporterFactory, cause: Compilation failed. class: org.apache.dubbo.metrics.report.MetricsReporterFactory$Adaptive, diagnostics: [warning: [options] source value 8 is obsolete and will be removed in a future release, warning: [options] target value 8 is obsolete and will be removed in a future release, warning: [options] To suppress warnings about obsolete options, use -Xlint:-options., Note: Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing., MetricsReporterFactory$Adaptive.java:2: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModel; ^, MetricsReporterFactory$Adaptive.java:3: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModelUtil; ^, MetricsReporterFactory$Adaptive.java:4: error: cannot find symbol public class MetricsReporterFactory$Adaptive implements org.apache.dubbo.metrics.report.MetricsReporterFactory { ^ symbol: class MetricsReporterFactory location: package org.apache.dubbo.metrics.report, MetricsReporterFactory$Adaptive.java:5: error: package org.apache.dubbo.common does not exist public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^, MetricsReporterFactory$Adaptive.java:5: error: cannot find symbol public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^ symbol: class MetricsReporter location: package org.apache.dubbo.metrics.report] 2025-07-18 08:54:16.048 [main] INFO o.s.b.a.logging.ConditionEvaluationReportLogger pt[] tid[] - Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2025-07-18 08:54:16.104 [main] ERROR org.springframework.boot.SpringApplication pt[] tid[] - Application run failed java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.metrics.report.MetricsReporterFactory, cause: Compilation failed. class: org.apache.dubbo.metrics.report.MetricsReporterFactory$Adaptive, diagnostics: [warning: [options] source value 8 is obsolete and will be removed in a future release, warning: [options] target value 8 is obsolete and will be removed in a future release, warning: [options] To suppress warnings about obsolete options, use -Xlint:-options., Note: Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing., MetricsReporterFactory$Adaptive.java:2: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModel; ^, MetricsReporterFactory$Adaptive.java:3: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModelUtil; ^, MetricsReporterFactory$Adaptive.java:4: error: cannot find symbol public class MetricsReporterFactory$Adaptive implements org.apache.dubbo.metrics.report.MetricsReporterFactory { ^ symbol: class MetricsReporterFactory location: package org.apache.dubbo.metrics.report, MetricsReporterFactory$Adaptive.java:5: error: package org.apache.dubbo.common does not exist public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^, MetricsReporterFactory$Adaptive.java:5: error: cannot find symbol public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^ symbol: class MetricsReporter location: package org.apache.dubbo.metrics.report] at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:738) at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.initMetricsReporter(DefaultApplicationDeployer.java:406) at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.initialize(DefaultApplicationDeployer.java:230) at org.apache.dubbo.config.deploy.DefaultModuleDeployer.prepare(DefaultModuleDeployer.java:660) at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.initDubboConfigBeans(DubboConfigApplicationListener.java:85) at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.init(DubboConfigApplicationListener.java:68) at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.onApplicationEvent(DubboConfigApplicationListener.java:59) at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.onApplicationEvent(DubboConfigApplicationListener.java:38) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:928) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) at org.springframework.boot.SpringApplication.run(SpringApplication.java:318) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350) at com.zeekrlife.cdn.CdnApplication.main(CdnApplication.java:30) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:102) at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:64) at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:40) Caused by: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.metrics.report.MetricsReporterFactory, cause: Compilation failed. class: org.apache.dubbo.metrics.report.MetricsReporterFactory$Adaptive, diagnostics: [warning: [options] source value 8 is obsolete and will be removed in a future release, warning: [options] target value 8 is obsolete and will be removed in a future release, warning: [options] To suppress warnings about obsolete options, use -Xlint:-options., Note: Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing., MetricsReporterFactory$Adaptive.java:2: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModel; ^, MetricsReporterFactory$Adaptive.java:3: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModelUtil; ^, MetricsReporterFactory$Adaptive.java:4: error: cannot find symbol public class MetricsReporterFactory$Adaptive implements org.apache.dubbo.metrics.report.MetricsReporterFactory { ^ symbol: class MetricsReporterFactory location: package org.apache.dubbo.metrics.report, MetricsReporterFactory$Adaptive.java:5: error: package org.apache.dubbo.common does not exist public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^, MetricsReporterFactory$Adaptive.java:5: error: cannot find symbol public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^ symbol: class MetricsReporter location: package org.apache.dubbo.metrics.report] at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:1443) at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:734) ... 25 common frames omitted Caused by: java.lang.IllegalStateException: Compilation failed. class: org.apache.dubbo.metrics.report.MetricsReporterFactory$Adaptive, diagnostics: [warning: [options] source value 8 is obsolete and will be removed in a future release, warning: [options] target value 8 is obsolete and will be removed in a future release, warning: [options] To suppress warnings about obsolete options, use -Xlint:-options., Note: Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing., MetricsReporterFactory$Adaptive.java:2: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModel; ^, MetricsReporterFactory$Adaptive.java:3: error: package org.apache.dubbo.rpc.model does not exist import org.apache.dubbo.rpc.model.ScopeModelUtil; ^, MetricsReporterFactory$Adaptive.java:4: error: cannot find symbol public class MetricsReporterFactory$Adaptive implements org.apache.dubbo.metrics.report.MetricsReporterFactory { ^ symbol: class MetricsReporterFactory location: package org.apache.dubbo.metrics.report, MetricsReporterFactory$Adaptive.java:5: error: package org.apache.dubbo.common does not exist public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^, MetricsReporterFactory$Adaptive.java:5: error: cannot find symbol public org.apache.dubbo.metrics.report.MetricsReporter createMetricsReporter(org.apache.dubbo.common.URL arg0) { ^ symbol: class MetricsReporter location: package org.apache.dubbo.metrics.report] at org.apache.dubbo.common.compiler.support.JdkCompiler.doCompile(JdkCompiler.java:128) at org.apache.dubbo.common.compiler.support.AbstractCompiler.doCompile(AbstractCompiler.java:88) at org.apache.dubbo.common.compiler.support.AbstractCompiler.compile(AbstractCompiler.java:70) at org.apache.dubbo.common.compiler.support.AdaptiveCompiler.compile(AdaptiveCompiler.java:53) at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:1469) at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:1452) at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:1435) ... 26 common frames omitted ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [x] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
