Skip to content

Commit bb34b9c

Browse files
garyrussellartembilan
authored andcommitted
GH-2415: Doc for DeserializationEx... with DLPR
Resolves #2415
1 parent 8a23e47 commit bb34b9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-kafka-docs/src/main/asciidoc/kafka.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -4643,6 +4643,9 @@ void listen(List<ConsumerRecord<String, Thing>> in) {
46434643
----
46444644
====
46454645

4646+
IMPORTANT: If you are also using a `DeadLetterPublishingRecoverer`, the record published for a `DeserializationException` will have a `record.value()` of type `byte[]`; this should not be serialized.
4647+
Consider using a `DelegatingByTypeSerializer` configured to use a `ByteArraySerializer` for `byte[]` and the normal serializer (Json, Avro, etc) for all other types.
4648+
46464649
[[payload-conversion-with-batch]]
46474650
===== Payload Conversion with Batch Listeners
46484651

0 commit comments

Comments
 (0)