RE: Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Thomas COUSIN
Ok I see.
So I will migrate to Java API.

Thank you for your help and your quick answers.


De : Andrea Cosentino 
Envoyé : vendredi 23 juin 2023 15:01
À : 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 ]

The elasticsearch rest client in version 3.14.7 is 7.10.2

For reason out of our control we cannot move on a different version because
they changed the license type with something non ASF compliant:

https://github.com/elastic/elasticsearch/blob/v7.10.2/LICENSE.txt
https://github.com/elastic/elasticsearch/blob/v7.11.0/LICENSE.txt

So we moved to Elasticsearch java API since the client is ASF compliant in
terms of license.

There is not so much we could do.



Il giorno ven 23 giu 2023 alle ore 14:57 Thomas COUSIN 
ha scritto:

> 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 
> Envoyé : vendredi 23 juin 2023 12:46
> À : 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.(ElasticsearchProducer.java:347)
> > ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
> > at
> >
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
> > 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.ja

Re: Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Andrea Cosentino
The elasticsearch rest client in version 3.14.7 is 7.10.2

For reason out of our control we cannot move on a different version because
they changed the license type with something non ASF compliant:

https://github.com/elastic/elasticsearch/blob/v7.10.2/LICENSE.txt
https://github.com/elastic/elasticsearch/blob/v7.11.0/LICENSE.txt

So we moved to Elasticsearch java API since the client is ASF compliant in
terms of license.

There is not so much we could do.



Il giorno ven 23 giu 2023 alle ore 14:57 Thomas COUSIN 
ha scritto:

> 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 
> Envoyé : vendredi 23 juin 2023 12:46
> À : 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.(ElasticsearchProducer.java:347)
> > ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
> > at
> >
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
> > 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)
> > ~[?:?]
> 

RE: Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Thomas COUSIN
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 
Envoyé : vendredi 23 juin 2023 12:46
À : 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 
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.(ElasticsearchProducer.java:347)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
> at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
> 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
>


RE: Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Thomas COUSIN
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 
Envoyé : vendredi 23 juin 2023 12:46
À : 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=05%7C01%7Ctcousin%40solocal.com%7C62c39e559ad74b02561208db73d742f9%7Cee6c37286c254201b1fb79cbe99342ab%7C0%7C0%7C638231140610797636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=mYxSMi6zv1j6ekq5X1zY9BU%2Fin6gM3MNaL2jqFOQvzo%3D=0<https://camel.apache.org/components/3.20.x/elasticsearch-component.html>

Il giorno ven 23 giu 2023 alle ore 12:42 Thomas COUSIN 
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.(ElasticsearchProducer.java:347)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
> at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
> 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%2Fapac

Re: Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Andrea Cosentino
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 
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.(ElasticsearchProducer.java:347)
> ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
> at
> org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
> 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
>
> [bandeau_pagesjaunes3]<
> https://www.youtube.com/playlist?list=PLlp-0-iXtsZMOsEKlmySbkrj7VNjqUOfH>
>
> [bandeau_partenaires]
>
> 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.
>


Elasticsearch migration problem from 7.6.1 to 7.17.6

2023-06-23 Thread Thomas COUSIN
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.(ElasticsearchProducer.java:347)
 ~[camel-elasticsearch-rest-3.14.7.jar:3.14.7]
at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer$HighLevelClient.(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-028B]
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

[bandeau_pagesjaunes3]

[bandeau_partenaires]

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.