Hi ,
I am trying to publish message to a Kafka Avro Schema using DataSet-Execute method (Save), The activity is returning Success but no data is being published to topic , there is no error in Tracer .
But in log I can find only the below message :
Conversion of ClipboardPage to GenericRecord has failed.
AvroSchema Json file content:
{
“type”: “record”,
“name”: “Movie”,
“fields”: [
{
“name”: “title”,
“type”: “string”
},
{
“name”: “year”,
“type”: “int”
}
]
}
Can anyone please guide do I need to set any other properties other than year and title in the DataSet-Execute step page . Or how to resolve the Clipboard to Generic record conversion error .
Thanks,
Abhishek
@AbhishekK0888 : After enabling logging level (ALL) for class :com.pega.dsm.kafka.api.serde.avro.ClipboardPageToGenericRecordConverter found below error in log :
org.apache.kafka.common.errors.SerializationException: Error registering Avro schema: {"type":"record","name":"Movie","fields":[{"name":"title","type":"string"},{"name":"year","type":"int"}]}
Caused by: io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Cannot construct instance of `io.confluent.kafka.schemaregistry.client.rest.entities.ErrorMessage` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)
After little bit of research I found that the Kafka Avro Schema registry and McAfee service both were listening to port : 8081 , so after modifying the listening port to 8089 it worked .