[ 
https://issues.apache.org/jira/browse/CAMEL-14086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Tyurin updated CAMEL-14086:
----------------------------------
    Description: 
Looks like there is no support of Elastic rest client of 7.3.2 version.

There is no method setMaxRetryTimeoutMillis in new elastic client library, but 
it is called from camel-elastic-rest component:

Caused by: java.lang.NoSuchMethodError: 
org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;Caused
 by: java.lang.NoSuchMethodError: 
org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;
 at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.createClient(ElasticsearchProducer.java:274)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.startClient(ElasticsearchProducer.java:265)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.doStart(ElasticsearchProducer.java:256)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) 
~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) 
~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) 
~[camel-core-2.24.2.jar!/:2.24.2]

  was:
Looks like there is not support of Elastic rest client of 7.3.2 version.

There is no method setMaxRetryTimeoutMillis in new elastic client library, but 
it is called from camel-elastic-rest component:

Caused by: java.lang.NoSuchMethodError: 
org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;Caused
 by: java.lang.NoSuchMethodError: 
org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;
 at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.createClient(ElasticsearchProducer.java:274)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.startClient(ElasticsearchProducer.java:265)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.component.elasticsearch.ElasticsearchProducer.doStart(ElasticsearchProducer.java:256)
 ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) 
~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) 
~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441)
 ~[camel-core-2.24.2.jar!/:2.24.2] at 
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) 
~[camel-core-2.24.2.jar!/:2.24.2]


> Camel-Elasticsearch-Rest: Support of Elastic rest client 7.3.2 is broken
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-14086
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14086
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-elasticsearch-rest
>    Affects Versions: 2.23.4, 2.24.2
>            Reporter: Andrey Tyurin
>            Priority: Major
>
> Looks like there is no support of Elastic rest client of 7.3.2 version.
> There is no method setMaxRetryTimeoutMillis in new elastic client library, 
> but it is called from camel-elastic-rest component:
> Caused by: java.lang.NoSuchMethodError: 
> org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;Caused
>  by: java.lang.NoSuchMethodError: 
> org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;
>  at 
> org.apache.camel.component.elasticsearch.ElasticsearchProducer.createClient(ElasticsearchProducer.java:274)
>  ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.component.elasticsearch.ElasticsearchProducer.startClient(ElasticsearchProducer.java:265)
>  ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.component.elasticsearch.ElasticsearchProducer.doStart(ElasticsearchProducer.java:256)
>  ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) 
> ~[camel-core-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) 
> ~[camel-core-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554)
>  ~[camel-core-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471)
>  ~[camel-core-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441)
>  ~[camel-core-2.24.2.jar!/:2.24.2] at 
> org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) 
> ~[camel-core-2.24.2.jar!/:2.24.2]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to