ReactorLoadBalancerExchangeFilterFunction caused org.springframework.context.support.GenericApplicationContext must be an instance of interface org.springframework.context.annotation.AnnotationConfigRegistry error in native image #34822
Labels
status: waiting-for-triage
An issue we've not yet triaged or decided on
Hello, I used Spring boot3.4.4 + spring cloud2024.0.1 + graalvm17.0.14 to build native image, I configured Webclient as follows
when run demo-rective, and call api, it caused exception as follows:
I investigated the source code, I found in the method of filter of ReactorLoadBalancerExchangeFilterFunction to get server instance by loadblance , the type of AbstractApplicationContext is GenericApplicationContext, not implements AnnotationConfigRegistry , so it caused org.springframework.context.support.GenericApplicationContext must be an instance of interface org.springframework.context.annotation.AnnotationConfigRegistry by Assert.isInstanceOf(AnnotationConfigRegistry.class, context);
the source code as follows:
so how to resolve this problem, thanks
The text was updated successfully, but these errors were encountered: