You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
a more meaningful exception
Actual Result
Caused by: java.lang.IllegalArgumentException: Can not set dubbo.test.api.DemoServiceB field dubbo.test.common.consumer.service.ConsumerServiceDemo.demoServiceB to com.alibaba.dubbo.common.bytecode.proxy0
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
at java.lang.reflect.Field.set(Field.java:764)
at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:367)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:92)
... 12 more
If there is an exception, please attach the exception trace:
Just put your stack trace here!
I think we should check if the type is matched when the interfaceName of Reference annotation is the same.
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce this issue
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
a more meaningful exception
Actual Result
If there is an exception, please attach the exception trace:
I think we should check if the type is matched when the interfaceName of Reference annotation is the same.
The text was updated successfully, but these errors were encountered: