apache / apache/incubator-seata-samples
Caused by: java.lang.IllegalStateException: Cannot convert value of type 'com.alibaba.dubbo.config.RegistryConfig' to required type 'com.alibaba.dubbo.config.ApplicationConfig' for property 'application': no matching editors or conversion strategy found
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
[启动-springboot-dubbo-seata-下面的全部模块](https://github.com/seata/seata-samples/tree/master/springboot-dubbo-seata)
```
@Service(version = "1.0.0",protocol = "${dubbo.protocol.id}",
application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
timeout = 3000)
```
下面的配置文件会导致出现标题所示异常
> application.properties
```
dubbo.application.id=dubbo-storage-example
dubbo.registry.id=dubbo-storage-example
```
而修改成下面的配置则成功启动
```
dubbo.application.id=dubbo-storage-application
dubbo.registry.id=dubbo-storage-registry
```
贴上全部异常信息
```
Error creating bean with name 'ServiceBean:io.seata.samples.integration.common.dubbo.StorageDubboService:1.0.0': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.alibaba.dubbo.config.RegistryConfig' to required type 'com.alibaba.dubbo.config.ApplicationConfig' for property 'application'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'com.alibaba.dubbo.config.RegistryConfig' to required type 'com.alibaba.dubbo.config.ApplicationConfig' for property 'application': no matching editors or conversion strategy found
```
Contributor guide
Research direction
Start in the springboot-dubbo-seata sample linked in the issue and inspect the @Service annotation and its application.properties values. Reproduce the startup failure with identical application and registry IDs, compare it with the working configuration using distinct IDs, and confirm the sample starts without the conversion exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100