Skip to content
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-2.7.13的ReferenceAnnotationBeanPostProcessor类中的无参构造函数,代码错误,找不到属性 #9494

Closed
itbac opened this issue Dec 25, 2021 · 1 comment
Labels
type/bug Bugs to being fixed

Comments

@itbac
Copy link

itbac commented Dec 25, 2021

dubbo-2.7.13的ReferenceAnnotationBeanPostProcessor类中的无参构造函数,代码错误, setClassValuesAsString, setNestedAnnotationsAsMap 找不到属性 。

Source code:

public ReferenceAnnotationBeanPostProcessor() {
super(new Class[]{DubboReference.class, Reference.class, com.alibaba.dubbo.config.annotation.Reference.class});
this.referenceBeanCache = new ConcurrentHashMap(CACHE_SIZE);
this.injectedFieldReferenceBeanCache = new ConcurrentHashMap(CACHE_SIZE);
this.injectedMethodReferenceBeanCache = new ConcurrentHashMap(CACHE_SIZE);
this.setClassValuesAsString(false);
this.setNestedAnnotationsAsMap(false);
}

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.<init>(ReferenceAnnotationBeanPostProcessor.java:106)

The following method did not exist:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.setClassValuesAsString(Z)V

The method's class, org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor, is available from the following locations:

jar:file:/D:/maven/apache-maven-3.5.0/repository/org/apache/dubbo/dubbo/2.7.13/dubbo-2.7.13.jar!/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessor.class

The class hierarchy was loaded from the following locations:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor: file:/D:/maven/apache-maven-3.5.0/repository/org/apache/dubbo/dubbo/2.7.13/dubbo-2.7.13.jar
com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor: file:/D:/maven/apache-maven-3.5.0/repository/com/alibaba/spring/spring-context-support/1.0.10/spring-context-support-1.0.10.jar
org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter: file:/D:/maven/apache-maven-3.5.0/repository/org/springframework/spring-beans/5.2.15.RELEASE/spring-beans-5.2.15.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor

@itbac itbac added the type/bug Bugs to being fixed label Dec 25, 2021
@itbac
Copy link
Author

itbac commented Dec 26, 2021

@itbac itbac closed this as completed Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

1 participant