The issue could also be due to a version mismatch between Kafka Connect and the Kafka API used in your connector. I encountered the same problem and resolved it by changing the Kafka API version.