imgoby opened a new issue, #14128: URL: https://github.com/apache/dubbo/issues/14128
### Pre-check - [X] I am sure that all the content I provide is in English. ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version 3.3.0-beta.2 ### Steps to reproduce this issue Step 1: ``` @Configuration @Slf4j public class InterceptConfig implements InitializingBean { @DubboReference private DubboXyzService dubboXyzService ; @Override public void afterPropertiesSet() throws Exception { dubboXyzService .load(); } } ``` Step 2: built with native-image Step3: Start up application Step 4: Exception: Caused by: java.lang.NullPointerException: null at org.apache.dubbo.config.spring.reference.ReferenceBeanManager.initReferenceBean(ReferenceBeanManager.java:197) at org.apache.dubbo.config.spring.ReferenceBean.getCallProxy(ReferenceBean.java:440) at org.apache.dubbo.config.spring.ReferenceBean.access$100(ReferenceBean.java:110) at org.apache.dubbo.config.spring.ReferenceBean$DubboReferenceLazyInitTargetSource.getTarget(ReferenceBean.java:467) at org.apache.dubbo.config.spring.util.LazyTargetInvocationHandler.invoke(LazyTargetInvocationHandler.java:50) at jdk.proxy4/jdk.proxy4.$Proxy86.loadSinkGroupList(Unknown Source) at com.xxx.DubboXyzService .load(SinkGroupManager.java:52) at com.xxx.InterceptConfig.afterPropertiesSet(InterceptConfig.java:47) ### What you expected to happen NullPointerException was found. ### Anything else Maybe : This is dubbo source in package: org.apache.dubbo.config.spring.reference class name: ReferenceBeanManager I can find the ReferenceConfig is null while debuging.  ### Are you willing to submit a pull request to fix on your own? - [X] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
