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
@Service
public final class FuncService {
private final FunctionCatalog functionCatalog;
public FuncService(final FunctionCatalog catalog) {
this.functionCatalog = catalog;
}
public Flux<Bar> applyCorrectFunc(final Flux<Foo> fooFlux) {
final Function<Flux<Foo>, Flux<Bar>> foobar = functionCatalog.lookup(applicationConfiguration.getFunctionDefinition()); //returns the name of the function
return foobar.apply(fooFlux);
}
@Bean
public Function<Flux<Foo>, Flux<Bar>> myfunc() {
return fooFlux -> //code to transform to barFlux;
}
The issue is that in my log, I am always seeing this message:
o.s.c.f.c.c.BeanFactoryAwareFunctionRegistry : Failed to locate function 'myfunc' for function definition 'myfunc'. Returning null.
It seems the first call to this function will yield this message, while subsequent calls to the exact same function will work.
May I ask what is the root cause of this issue?
Thank you for your help.
ls-urs-keller, abelmatos, ronnyhaendeldmde and guerricm