[
https://issues.apache.org/jira/browse/CAMEL-9026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14645043#comment-14645043
]
Mark Mindenhall commented on CAMEL-9026:
----------------------------------------
[~ancosen], [~tdiesler], I saw discussion of this go by in camel-dev, and have
a couple of questions.
First, I'm concerned that this might have somehow been caused by the patch I
submitted for CAMEL-8790. However, there's a test in
{{org.apache.camel.component.kafka.KafkaProducerFullTest}} that uses
{{kafka.serializer.StringEncoder}}, and that test passes without this patch.
So I'm wondering if you can provide more details about the route configuration
that resulted in the exception?
Second, the patch for CAMEL-8790 was backported to the 2.15.x branch...can this
be backported as well? It should merge cleanly, and if I was the cause, either
this patch needs to be merged or my patch reverted from 2.15.x to avoid
breaking things for existing 2.15.x users.
Thanks!
> ClassNotFoundException: kafka.serializer.StringEncoder
> ------------------------------------------------------
>
> Key: CAMEL-9026
> URL: https://issues.apache.org/jira/browse/CAMEL-9026
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Reporter: Thomas Diesler
> Assignee: Andrea Cosentino
> Fix For: 2.16.0
>
>
> KafkaEndpoint cannot load the StringEncoder because we do not expose the
> Kafka API to user code. It's an implementation detail of the camel-kafka
> component and only visible to that class loader
> {code}
> Caused by: java.lang.ClassNotFoundException: kafka.serializer.StringEncoder
> at
> org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:80)
> at
> org.apache.camel.component.kafka.KafkaEndpoint.createProducer(KafkaEndpoint.java:83)
> at
> org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:431)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)