dubbo-spring-boot-project icon indicating copy to clipboard operation
dubbo-spring-boot-project copied to clipboard

dubboreferences Endpoints fail

Open frank780117 opened this issue 4 years ago • 0 comments

如果一個應用程序有 reference 自己的 dubbo service (本地的 consumer 使用本地的 provider) , 再用 dubboreferences Enpoint 會拋出 NPE, 因為 consumerConfig == null

Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.dubbo.spring.boot.actuate.endpoint.metadata.AbstractDubboMetadata.resolveBeanMetadata(AbstractDubboMetadata.java:94) ... 58 common frames omitted Caused by: java.lang.NullPointerException: null at org.apache.dubbo.config.ReferenceConfigBase.getUniqueServiceName(ReferenceConfigBase.java:271)

frank780117 avatar May 05 '20 11:05 frank780117