davsclaus commented on issue #3279:
URL: 
https://github.com/apache/camel-kamelets/issues/3279#issuecomment-7069406742

   **Item 4 (`apicurio` with `json`), checked again on the 4.24.0-SNAPSHOT 
(2026-11-21):** it still fails, and the fix is not in the Kamelets. There are 
two causes:
   
   1. **Dependency versions:** the Apicurio 3.3.4 JSON Schema serde is built 
against `com.networknt:json-schema-validator` 1.5.9, but Camel manages 3.0.9 
(`networknt-json-schema-validator-version`), and Camel JBang uses that version. 
The serializer then fails with `IncompatibleClassChangeError: class 
com.networknt.schema.resource.DefaultSchemaLoader can not implement 
com.networknt.schema.resource.SchemaLoader, because it is not an interface`. 
Both versions cannot be on one classpath, so this needs an Apicurio serde built 
on json-schema-validator 2.x or later.
   2. **No auto-registration:** even with `apicurio.registry.auto-register`, 
the Apicurio JSON Schema serializer cannot make a schema from a Map or JSON 
value. It looks up `<topic>-value` in the registry and gets a 404 until a JSON 
Schema is registered there by hand. Confluent makes a schema from the value; 
Apicurio does not.
   
   Until then, `kafka-sink` and `kafka-source` say to use `avro` or `protobuf` 
with `apicurio`, and #3190 lists this as a known gap.
   
   _Claude Code on behalf of Claus Ibsen_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to