Hi, I am trying to create a KTable from Kafka Topic on Confluent Cloud CLI. Kafka topic contains JSON data. If one of the JSON FIELD has INTEGER data, I can’t see any data resulting out of KTable created on that topic. KSQL_PROCESSING_LOG
shows serialization exception : Size of data received by LongDeserializer is not 8.
{
"MESSAGE": null,
"DESERIALIZATIONERRORCAUSE": null,
"DESERIALIZATIONERRORMESSAGE": null,
"RECORDPROCESSINGERRORCAUSE": [
"java.lang.NullPointerException"
],
"RECORDPROCESSINGERRORRECORD": "[\"processing.transient_KSQL_PROCESSING_LOG_3216184106591902114.Project\",\"ERROR\",1637859004592,{\"TYPE\":1,\"DESERIALIZATIONERROR\":null,\"RECORDPROCESSINGERROR\":{\"ERRORMESSAGE\":\"Error computing expression MESSAGE->SERIALIZATIONERROR->ERRORMESSAGE for column SERIALIZATIONERRORERRORMESSAGE with index 8\",\"RECORD\":\"[\\\"processing.transient_KSQL_PROCESSING_LOG_3216184106591902114.Project\\\",\\\"ERROR\\\",1637859004511,{\\\"TYPE\\\":1,\\\"DESERIALIZATIONERROR\\\":null,\\\"RECORDPROCESSINGERROR\\\":{\\\"ERRORMESSAGE\\\":\\\"Error computing expression MESSAGE->SERIALIZATIONERROR->RECORD for column SERIALIZATIONERRORRECORD with index 7\\\",\\\"RECORD\\\":\\\"[\\\\\\\"processing.transient_KSQL_PROCESSING_LOG_3216184106591902114.Project\\\\\\\",\\\\\\\"ERROR\\\\\\\",1637859004462,{\\\\\\\"TYPE\\\\\\\":1,\\\\\\\"DESERIALIZATIONERROR\\\\\\\":null,\\\\\\\"RECORDPROCESSINGERROR\\\\\\\":{\\\\\\\"ERRORMESSAGE\\\\\\\":\\\\\\\"Error computing expression MESSAGE->KAFKASTREAMSTHREADERROR->CAUSE for column KAFKASTREAMSTHREADERRORCAUSE with index 10\\\\\\\",\\\\\\\"RECORD\\\\\\\":\\\\\\\"[\\\\\\\\\\\\\\\"processing.transient_USERS_631838209135659341.KsqlTopic.Source.deserializer\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"ERROR\\\\\\\\\\\\\\\",1637859004413,{\\\\\\\\\\\\\\\"TYPE\\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\\"DESERIALIZATIONERROR\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\"TARGET\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"ERRORMESSAGE\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Error deserializing KAFKA message from topic: new_topic\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"RECORDB64\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"MQ==\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"CAUSE\\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\\"Size of data received by LongDeserializer is not 8\\\\\\\\\\\\\\\"],\\\\\\\\\\\\\\\"topic\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"new_topic\\\\\\\\\\\\\\\"},\\\\\\\\\\\\\\\"RECORDPROCESSINGERROR\\\\\\\\\\\\\\\":null,\\\\\\\\\\\\\\\"PRODUCTIONERROR\\\\\\\\\\\\\\\":null,\\\\\\\\\\\\\\\"SERIALIZATIONERROR\\\\\\\\\\\\\\\":null,\\\\\\\\\\\\\\\"KAFKASTREAMSTHREADERROR\\\\\\\\\\\\\\\":null},1637859004413]\\\\\\\",\\\\\\\"CAUSE\\\\\\\":[\\\\\\\"java.lang.NullPointerException\\\\\\\"]},\\\\\\\"PRODUCTIONERROR\\\\\\\":null,\\\\\\\"SERIALIZATIONERROR\\\\\\\":null,\\\\\\\"KAFKASTREAMSTHREADERROR\\\\\\\":null},1637859004462]\\\",\\\"CAUSE\\\":[\\\"java.lang.NullPointerException\\\"]},\\\"PRODUCTIONERROR\\\":null,\\\"SERIALIZATIONERROR\\\":null,\\\"KAFKASTREAMSTHREADERROR\\\":null},1637859004511]\",\"CAUSE\":[\"java.lang.NullPointerException\"]},\"PRODUCTIONERROR\":null,\"SERIALIZATIONERROR\":null,\"KAFKASTREAMSTHREADERROR\":null},1637859004592]",
"RECORDPROCESSINGERRORERRORMESSAGE": "Error computing expression MESSAGE->SERIALIZATIONERROR->RECORD for column SERIALIZATIONERRORRECORD with index 7",
"SERIALIZATIONERRORCAUSE": null,
"SERIALIZATIONERRORRECORD": null,
"SERIALIZATIONERRORERRORMESSAGE": null,
"PRODUCTIONERRORERRORMESSAGE": null,
"KAFKASTREAMSTHREADERRORCAUSE": null,
"KAFKASTREAMSTHREADERRORTHREADNAME": null,
"KAFKASTREAMSTHREADERRORERRORMESSAGE": null
}
where data is {"id":1, "name":"abc"}
JSON data in topic with no number field is working fine with KTable pull query.
I request you to help in this case.
@rmoff
Thanks.