79808019

Date: 2025-11-03 15:27:19
Score: 5.5
Natty: 4.5
Report link

java.lang.NullPointerException: Cannot invoke "org.springframework.messaging.SubscribableChannel.send(org.springframework.messaging.Message)" because the return value of "org.springframework.cloud.stream.binder.test.InputDestination.getChannelByName(String)" is null

Using spring boot starter version: 3.5.6, spring.cloud.version 2025.0.0

tried everything but getting by setting setting

@TestPropertySource(properties = "spring.cloud.function.definition=getABCDetailsRequest-in-0")

harcoded destination name inputDestination.send(message, "getABCDetailsRequest-in-0") null only. any help is appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): any help
  • RegEx Blacklisted phrase (3): any help is appreciated
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: AnonymousDev