[main] INFO org.apache.kafka.common.utils.AppInfoParser - App info kafka.consumer for f2964d4c-ac45-474a-8820-6a7a0c37a2b8 unregistered
Exception in thread "main" org.apache.kafka.common.errors.SerializationException: Error deserializing key/value for partition ECOMMERCE_NEW_ORDER-0 at offset 0. If needed, please seek past the record to continue consumption.
Caused by: java.lang.NullPointerException
at com.google.gson.internal.$Gson$Preconditions.checkNotNull($Gson$Preconditions.java:39)
at com.google.gson.reflect.TypeToken.<init>(TypeToken.java:72)
at com.google.gson.reflect.TypeToken.get(TypeToken.java:296)
at com.google.gson.Gson.fromJson(Gson.java:930)
at com.google.gson.Gson.fromJson(Gson.java:897)
at com.google.gson.Gson.fromJson(Gson.java:846)
at com.google.gson.Gson.fromJson(Gson.java:817)
at com.br.alura.GsonDeserializer.deserialize(GsonDeserializer.java:29)
at org.apache.kafka.common.serialization.Deserializer.deserialize(Deserializer.java:60)
at org.apache.kafka.clients.consumer.internals.Fetcher.parseRecord(Fetcher.java:1386)
at org.apache.kafka.clients.consumer.internals.Fetcher.access$3400(Fetcher.java:133)
at org.apache.kafka.clients.consumer.internals.Fetcher$CompletedFetch.fetchRecords(Fetcher.java:1617)
at org.apache.kafka.clients.consumer.internals.Fetcher$CompletedFetch.access$1700(Fetcher.java:1453)
at org.apache.kafka.clients.consumer.internals.Fetcher.fetchRecords(Fetcher.java:686)
at org.apache.kafka.clients.consumer.internals.Fetcher.fetchedRecords(Fetcher.java:637)
at org.apache.kafka.clients.consumer.KafkaConsumer.pollForFetches(KafkaConsumer.java:1303)
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1237)
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1210)
at com.br.alura.KafkaService.run(KafkaService.java:42)
at com.br.alura.FraudDetectorService.main(FraudDetectorService.java:21)
Process finished with exit code 1
Código do curso: https://github.com/gabizinha12/ecommerce-kafka Não sei porque não funciona, fiz tudo certinho, já revisei o código.