apache / incubator-seata-samples

Apache Seata(incubating) Samples for Java
https://seata.apache.org/
Apache License 2.0
2.26k stars 1.91k forks source link

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 #131

Open dismasson opened 5 years ago

dismasson commented 5 years ago

启动-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
zKF53064 commented 5 years ago

今天启动springboot-dubbo-seata也遇到这个问题了,更新了最新代码,问题就没了, 冒昧的问下,知道这个问题是怎么发生的么?@dismasson