Skip to content

Null Payloads During Deserialization with Spring Cloud Stream Kafka #2994

@BernardoMatar

Description

@BernardoMatar

Describe the bug
Issue Description:

I am using Spring Cloud Stream with Kafka Stream functions and am encountering an issue where payloads are deserialized as null. I suspect this might be due to a configuration problem or an issue I have not yet identified. Here is the detailed behavior:

When processing messages through the Kafka stream function, I receive null payloads after deserialization.
Up until the SmartCompositeMessageConverter method fromMessage, the message attribute contains a GenericMessage with the complete payload according to the batch-size.
However, the conversion process fails, resulting in an empty list with no exceptions or error messages.
No exceptions are thrown during the deserialization process.

Sample
springBootVersion=2.7.18
org.springframework.cloud:spring-cloud-starter-stream-kafka:4.1.3'

image

image

image

image

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions