davsclaus opened a new pull request, #30455: URL: https://github.com/apache/camel/pull/30455
[CAMEL-27260](https://issues.apache.org/jira/browse/CAMEL-27260) The Pub/Sub API classes of camel-salesforce are generated with protoc `${protobuf-version}` (4.35.1) and need protobuf-java 4.x at runtime. The component got protobuf-java only through `grpc-protobuf` 1.85.1, which brings 3.25.9. The parent POM manages it to 4.35.1 inside the Camel build, but a user's build doesn't apply that management to a transitive dependency. So `camel run`, and a project that imports only `camel-bom`, failed at startup on any salesforce endpoint, even `createSObject`: ``` java.lang.NoClassDefFoundError: com/google/protobuf/RuntimeVersion$RuntimeDomain at com.salesforce.eventbus.protobuf.ReplayPreset.<clinit>(ReplayPreset.java:48) ``` The component now declares `protobuf-java` with `${protobuf-version}`, as camel-kserve and camel-tensorflow-serving already do. I checked camel-qdrant and camel-grpc, which also use grpc-protobuf: they have no classes generated with protobuf 4, so they don't need it. ### Verified With the component installed locally, the same `camel run` route (`timer` → `salesforce:createSObject`, logging in to `localhost:1`) starts and fails only at the login, with `Connection refused`, as expected. Before the change it failed at startup with the error above. The installed POM now lists protobuf-java 4.35.1 as a compile dependency. _Claude Code on behalf of Claus Ibsen_ 🤖 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]
