Kafka producer throws the following exception when record is sent to kafka topic:
{\\"log\\":\\"java.lang.IllegalMonitorStateException: current