davsclaus opened a new pull request, #30538:
URL: https://github.com/apache/camel/pull/30538

   _Claude Code on behalf of Claus Ibsen_
   
   ## What
   
   [CAMEL-27325](https://issues.apache.org/jira/browse/CAMEL-27325): after the 
Kafka 4.4.0 upgrade (CAMEL-27273), the Confluent Protobuf deserializer fails on 
every record:
   
   ```
   java.lang.NoClassDefFoundError: org/apache/kafka/common/utils/ByteUtils
   Caused by: java.lang.ClassNotFoundException: 
org.apache.kafka.common.utils.ByteUtils
   ```
   
   Kafka 4.4 moved `ByteUtils` to `org.apache.kafka.common.utils.internals`. 
`SchemaId$SchemaMessageIndexes` in `kafka-schema-serializer` 8.3.3 still uses 
the old class. Avro and JSON Schema don't read message indexes, so they kept 
working.
   
   ## Changes
   
   - `parent/pom.xml`: `confluent-serializer-version` 8.3.3 -> 8.4.1, the 
version the Camel CLI downloads for the Confluent serde classes 
(`known-third-party-libraries.properties` in camel-kamelet-main). Camel itself 
does not compile against Confluent.
   - Kafka component doc: the Maven example now shows 8.4.1. The catalog copy 
is updated too.
   - Upgrade guide 4.24: a new entry says Kafka 4.4 needs Confluent serializers 
8.4 or newer, for applications that add the Confluent jars themselves.
   
   ## Testing
   
   - I ran a protobuf serialize and deserialize (`KafkaProtobufSerializer` / 
`KafkaProtobufDeserializer` with a `mock://` schema registry) on kafka-clients 
4.4.0:
     - 8.3.3: `NoClassDefFoundError: org/apache/kafka/common/utils/ByteUtils`
     - 8.4.0 and 8.4.1: the record reads back
   - `KnownDependenciesResolverTest` (camel-kamelet-main) passes, and the 
resolved classes now map to 8.4.1.
   
   On the kamelets side, apache/camel-kamelets#3295 (protobuf schema format) 
waits for this; its Confluent protobuf Citrus tests fail with 8.3.3.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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