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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcamel.apache.org%2Fcomponents%2F3.20.x%2Felasticsearch-component.html&data=05%7C01%7Ctcousin%40solocal.com%7C62c39e559ad74b02561208db73d742f9%7Cee6c37286c254201b1fb79cbe99342ab%7C0%7C0%7C638231140610797636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mYxSMi6zv1j6ekq5X1zY9BU%2Fin6gM3MNaL2jqFOQvzo%3D&reserved=0<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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F70666910%2Fapache-camel-elasticsearch-endpoint-failing-with-classnotfoundexception-org-ela&data=05%7C01%7Ctcousin%40solocal.com%7C62c39e559ad74b02561208db73d742f9%7Cee6c37286c254201b1fb79cbe99342ab%7C0%7C0%7C638231140610797636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vE7jYe5Ccd%2FTMW28Gwp6MFNU9C35Kn1RNwFOK8xmnSA%3D&reserved=0<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
>
> [bandeau_pagesjaunes3]<
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLlp-0-iXtsZMOsEKlmySbkrj7VNjqUOfH&data=05%7C01%7Ctcousin%40solocal.com%7C62c39e559ad74b02561208db73d742f9%7Cee6c37286c254201b1fb79cbe99342ab%7C0%7C0%7C638231140610797636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ooth3ijHx7nKmnU9NclmssMmXFB4DlGvDBeXK2k2VQM%3D&reserved=0><https://www.youtube.com/playlist?list=PLlp-0-iXtsZMOsEKlmySbkrj7VNjqUOfH>
>
> [bandeau_partenaires]<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.solocal.com%2F&data=05%7C01%7Ctcousin%40solocal.com%7C62c39e559ad74b02561208db73d742f9%7Cee6c37286c254201b1fb79cbe99342ab%7C0%7C0%7C638231140610797636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MWlv3yVaSeXsepc2iitrRzL0Fg1E74L6xInX9zxpuLU%3D&reserved=0>
>
> Les informations contenues dans le présent message sont strictement
> confidentielles et ne sont destinées qu'à l'usage de la ou des personne(s)
> dont le nom apparaît en qualité de destinataire(s) et de tout autre
> personne spécifiquement autorisée à les recevoir. Si vous n'êtes pas la
> personne à qui ce message est destiné, nous vous informons qu'il est
> strictement interdit de le lire, diffuser, de le distribuer ou d'en faire
> des copies, totalement ou partiellement, sur tout support, notamment un
> support électronique, ou autre. La présente interdiction s'applique tant au
> message lui-même qu'aux documents qui peuvent être joints audit message. Si
> vous recevez ce message par erreur, nous vous remercions de bien vouloir le
> détruire ainsi que toute copie et de signaler l'erreur à l'envoyeur par
> retour d’e-mail.
>

Reply via email to