New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dubbo.consumer.check配置无效 #7385
Comments
Can you provide a sample and steps to reproduce ? I read the code, there should be no exception |
环境: 代码异常出现在 DubboAnnotationUtils.resolveServiceInterfaceClass()方法中,大约第95行,泛型类型转换异常,使用了@DubboReference都会出现改问题,导致应用无法启动 |
看了attributes的内容 interfaceClass=void |
dubbo-spring-strart 2.7.8 |
let me have a look. |
Can you provide a completed demo? My local test did not show your problem. test case: system info
pom.xml
|
查了一圈,是用了spring-context-support-1.0.11.jar导致的问题 |
Great, is it convenient to introduce how this problem arises? |
&READY-TO-CLOSE& |
dubbo和nacos 1.4.x依赖的alibaba spring-context-support版本有冲突 |
#8217 has bean merged into master branch (dubbo 2.7.x), please check it again. |
Try it with the latest version, if you still have problems, you can reopen the issues. |
版本:2.7.8
Provider端未启动
部分配置如下:
dubbo.protocol.name=dubbo
dubbo.consumer.check=false
伪代码:
@DubboReference
private AppInfoSpi appInfoSpi;
报错内容:
at org.apache.dubbo.config.spring.util.DubboAnnotationUtils.resolveServiceInterfaceClass(DubboAnnotationUtils.java:95)
at org.apache.dubbo.config.spring.util.DubboAnnotationUtils.resolveInterfaceName(DubboAnnotationUtils.java:78)
at org.apache.dubbo.config.spring.beans.factory.annotation.ServiceBeanNameBuilder.(ServiceBeanNameBuilder.java:65)
at org.apache.dubbo.config.spring.beans.factory.annotation.ServiceBeanNameBuilder.create(ServiceBeanNameBuilder.java:78)
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferencedBeanName(ReferenceAnnotationBeanPostProcessor.java:303)
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInjectedObjectCacheKey(ReferenceAnnotationBeanPostProcessor.java:292)
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.getInjectedObject(AbstractAnnotationBeanPostProcessor.java:404)
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor$AnnotatedFieldElement.inject(AbstractAnnotationBeanPostProcessor.java:626)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:179)
The text was updated successfully, but these errors were encountered: