Clients using schemas fail with Apicurio 2.4.1 or later


After upgrading to Event Streams 11.2.x and migrating to use the latest version of Apicurio that is included in Event Streams, client applications that use the schema registry fail with errors similar to the following example: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2022-12-13T20:10:29Z": expected format "yyyy-MM-dd'T'HH:mm:ssZ"
 at [Source: ($HttpResponseInputStream); line: 1, column: 54] (through reference chain:["createdOn"])
        at io.apicurio.registry.resolver.DefaultSchemaResolver.lambda$handleAutoCreateArtifact$2(
        at io.apicurio.registry.resolver.ERCache.lambda$getValue$0(
        at io.apicurio.registry.resolver.ERCache.retry(
        at io.apicurio.registry.resolver.ERCache.getValue(
        at io.apicurio.registry.resolver.ERCache.getByContent(
        at io.apicurio.registry.resolver.DefaultSchemaResolver.handleAutoCreateArtifact(
        at io.apicurio.registry.resolver.DefaultSchemaResolver.getSchemaFromRegistry(
        at io.apicurio.registry.resolver.DefaultSchemaResolver.resolveSchema(
        at io.apicurio.registry.serde.AbstractKafkaSerializer.serialize(
        at org.apache.kafka.clients.producer.KafkaProducer.doSend(
        at org.apache.kafka.clients.producer.KafkaProducer.send(
        at org.apache.kafka.clients.producer.KafkaProducer.send(


Apicurio client libraries versions 2.3.1 and earlier use a date format that is not compatible with Apicurio Registry server versions 2.4.1 or later.

Resolving the problem

Ensure you are using the latest Apicurio version as follows:

  1. Ensure all applications connecting to your instance of Event Streams that use the schema registry are using Apicurio client libraries version 2.4.1 or later.

  2. Ensure that the migration to using the latest Apicurio image has completed by verifying that the image for the apicurio-registry container in the schema registry pod is<sha reference>.

    To get the images used in the schema registry pod use the following command:

    oc get pods -n es -l  -o jsonpath="{.items[*].spec.containers[*].image}"