DEBUG 2015-08-05 20:05:09,962 [main] (RestUtils.java:105) - Sending POST with input {"schema":"{\"type\":\"record\",\"name\":\"Event\",\"namespace\":\"events.avro\",\"fields\":[{\"name\":\"type\",\"type\":\"string\"},{\"name\":\"message\",\"type\":[\"string\",\"null\"]}]}"} to
http://localhost:8081/subjects/test-value/versionsException in thread "main" org.apache.kafka.common.errors.SerializationException: Error serializing Avro message
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@51fb3f37; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3095)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3036)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2192)
at io.confluent.kafka.schemaregistry.client.rest.utils.RestUtils.httpRequest(RestUtils.java:144)
at io.confluent.kafka.schemaregistry.client.rest.utils.RestUtils.registerSchema(RestUtils.java:174)
at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.registerAndGetId(CachedSchemaRegistryClient.java:51)
at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.register(CachedSchemaRegistryClient.java:89)
at io.confluent.kafka.serializers.AbstractKafkaAvroSerializer.serializeImpl(AbstractKafkaAvroSerializer.java:49)
at io.confluent.kafka.serializers.KafkaAvroSerializer.serialize(KafkaAvroSerializer.java:67)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:326)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:248)
.....
.....