I am using Elasticsearch Rest Starter.

I would stay in 3.14 for now because there is breaking complatibility changes 
in GooglePubSub component since 3.18.


De : Andrea Cosentino <anco...@gmail.com>
Envoyé : vendredi 23 juin 2023 12:46
À : users@camel.apache.org <users@camel.apache.org>
Objet : Re: Elasticsearch migration problem from 7.6.1 to 7.17.6

[Vous ne recevez pas souvent de courriers de anco...@gmail.com. Découvrez 
pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

Hello,

Are you using the Elasticsearch Starter or the Elasticsearch Rest Starter?

Because starting from 3.19.0 there is already a component using the java
API: https://camel.apache.org/components/3.20.x/elasticsearch-component.html

Il giorno ven 23 giu 2023 alle ore 12:42 Thomas COUSIN <tcou...@solocal.com>
ha scritto:

> Hello,
>
> I am facing an execution error after migrate from Elasticsearch 7.6.1 to
> 7.17.6 on my Spring Boot application (2.6.6) using Camel 3.14.7.
> I am using the Elasticsearch High Level Rest Client.
>
> Stacktrace
>
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> java.lang.NoClassDefFoundError: org/elasticsearch/common/CheckedConsumer
>         at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.<init>(ElasticsearchProducer.java:347)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.<init>(ElasticsearchProducer.java:345)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer.process(ElasticsearchProducer.java:124)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
> ~[camel-support-3.14.7.jar:3.14.7]
>         ... 9 more
> Wrapped by: org.apache.camel.CamelExecutionException: Exception occurred
> during execution on the exchange: Exchange[88DD3EC7DD8FD02-000000000000028B]
>         at
> org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:45)
> ~[camel-api-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.support.AbstractExchange.setException(AbstractExchange.java:591)
> ~[camel-support-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.support.DefaultExchange.setException(DefaultExchange.java:27)
> ~[camel-support-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:69)
> ~[camel-support-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:172)
> ~[camel-core-processor-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.management.DefaultInstrumentationProcessor.process(DefaultInstrumentationProcessor.java:90)
> ~[camel-management-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.redeliver(RedeliveryErrorHandler.java:884)
> ~[camel-core-processor-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193)
> ~[camel-base-engine-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.impl.engine.DefaultReactiveExecutor.schedule(DefaultReactiveExecutor.java:59)
> ~[camel-base-engine-3.14.7.jar:3.14.7]
>         at
> org.apache.camel.processor.aggregate.AggregateProcessor.lambda$onSubmitCompletion$4(AggregateProcessor.java:893)
> ~[camel-core-processor-3.14.7.jar:3.14.7]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> ~[?:?]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> ~[?:?]
>         at java.lang.Thread.run(Thread.java:834) ~[?:?]
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>
> Same problem was described on Stackoverflow but nobody found a solution :
> https://stackoverflow.com/questions/70666910/apache-camel-elasticsearch-endpoint-failing-with-classnotfoundexception-org-ela
>
> I tried to upgrade to Camel 3.20.3 but the error is still there.
>
> Could the solution be to migrate to Elasticsearch Java Api Client ?
>
>
> Thanks in advance for your help
>
> Thomas Cousin
>

Reply via email to