Ошибка при отправке с использованием StreamBridge: SimpleFunctionRegistry$FunctionInvoctionWrapper вернул нольJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Ошибка при отправке с использованием StreamBridge: SimpleFunctionRegistry$FunctionInvoctionWrapper вернул ноль

Сообщение Anonymous »

При использовании StreamBridge.send я получаю следующую ошибку. Я раньше не видел этой ошибки, и журналы не дают никакой информации.

Код: Выделить всё

java.lang.RuntimeException: org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper returned null
at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:228)
at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:178)
При поиске в Google и др. по этому сообщению журнала, то, что отдаленно похоже на эту проблему, заключается в следующем:

Код: Выделить всё

The java.lang.RuntimeException: org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper returned null error during StreamBridge.send calls typically arises when the function to invoke is not properly registered or is null at the time of invocation. This can occur in scenarios where a bean implementing SmartInitializingSingleton attempts to use StreamBridge.send before the function catalog is fully initialized, leading to a null function being cached and subsequently causing a NullPointerException. Similarly, if a consumer method attempts to use StreamBridge during application startup and the functionCatalog is not yet populated, the FunctionInvocationWrapper may be null, resulting in the same exception. The issue is exacerbated when the function registration happens after the afterSingletonsInstantiated phase, making the null state irrecoverable without a restart. This behavior is particularly problematic in environments like Azure Storage where message handlers are initialized early in the bootstrapping process.
Однако долгое ожидание вызова send, похоже, не дает никакого эффекта.
spring boot 3.4.3
spring CloudStream Kafka Binder 4.3.1
Любая помощь приветствуется!>
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»