You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/19 05:03:30 UTC
[GitHub] [dubbo] lishangbu opened a new issue #9806: ```dubbo.metadata-report.protocol``` cannot be applied
lishangbu opened a new issue #9806:
URL: https://github.com/apache/dubbo/issues/9806
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 3.0.6
* Operating System version: macos 12.3
* Java version: 17
### Steps to reproduce this issue
1. use config like this:
```yaml
dubbo:
metadata-report:
address: ${spring.redis.host:127.0.0.1}
protocol: redis
port: ${spring.redis.port:6379}
```
the config of meta-report like this:
```xml
<dubbo:metadata-report address="127.0.0.1" protocol="redis" port="6379" />
```
3. The behavior of starting application will be failed.
4. by the way,when we use config like this:
```yaml
dubbo:
metadata-report:
address: redis:${spring.redis.host:127.0.0.1}:${spring.redis.port:6379}
```
We can start application successfully.
the config of meta-report like this:
```xml
<dubbo:metadata-report address="redis:127.0.0.1:6379" port="6379" />
```
### Expected Behavior
<!-- What do you expect from the above steps?-->
parse protocol from ```dubbo.metadata-report.protocol``` property when we cannot parse form url parameters
### Actual Behavior
dubbo metacenter support cannot parse protocol from url parameters,so it use default value```org.apache.dubbo.common.constants.CommonConstants#DEFAULT_DIRECTORY```
<!-- What actually happens? -->
```dubbo.metadata-report.protocol```cannot be applied,application start failed
If there is an exception, please attach the exception trace:
```
java.lang.IllegalStateException: No such extension org.apache.dubbo.metadata.report.MetadataReportFactory by name dubbo, no related exception was found, please check whether related SPI module is missing.
at org.apache.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:747) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:754) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:548) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:523) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.metadata.report.MetadataReportFactory$Adaptive.getMetadataReport(MetadataReportFactory$Adaptive.java) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.metadata.report.MetadataReportInstance.init(MetadataReportInstance.java:96) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.metadata.report.MetadataReportInstance.init(MetadataReportInstance.java:78) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.startMetadataCenter(DefaultApplicationDeployer.java:290) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.initialize(DefaultApplicationDeployer.java:189) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.deploy.DefaultModuleDeployer.prepare(DefaultModuleDeployer.java:467) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.initDubboConfigBeans(DubboConfigApplicationListener.java:71) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.onApplicationEvent(DubboConfigApplicationListener.java:57) ~[dubbo-3.0.6.jar:3.0.6]
at org.apache.dubbo.config.spring.context.DubboConfigApplicationListener.onApplicationEvent(DubboConfigApplicationListener.java:35) ~[dubbo-3.0.6.jar:3.0.6]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:881) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:580) ~[spring-context-5.3.16.jar:5.3.16]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.4.jar:2.6.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) ~[spring-boot-2.6.4.jar:2.6.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) ~[spring-boot-2.6.4.jar:2.6.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-2.6.4.jar:2.6.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) ~[spring-boot-2.6.4.jar:2.6.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[spring-boot-2.6.4.jar:2.6.4]
```
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] chickenlj closed issue #9806: ```dubbo.metadata-report.protocol``` cannot be applied
Posted by GitBox <gi...@apache.org>.
chickenlj closed issue #9806:
URL: https://github.com/apache/dubbo/issues/9806
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org