[
https://issues.apache.org/jira/browse/CAMEL-12774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Bolshakov reopened CAMEL-12774:
------------------------------------
Estimated Complexity: Unknown (was: Moderate)
It look's like not fixed in version 2.22.2
> Error during type conversion from type: java.lang.String to the required
> type: org.elasticsearch.action.update.UpdateRequest
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-12774
> URL: https://issues.apache.org/jira/browse/CAMEL-12774
> Project: Camel
> Issue Type: Bug
> Components: camel-elasticsearch-rest
> Affects Versions: 2.22.0
> Reporter: Ivan Bolshakov
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 2.21.3, 2.22.2, 2.23.0
>
> Attachments: ElasticsearchUpdateStringTest.java
>
>
> When I try to update es document using Update method of
> camel-elasticsearch-rest endpoint I got this error
> *Caused by: org.apache.camel.TypeConversionException: Error during type
> conversion from type: java.lang.String to the required type:
> org.elasticsearch.action.update.UpdateRequest with value
> \{teststringupdate-key2=teststringupdate-value2} due
> java.lang.IllegalArgumentException: The number of object passed must be even
> but was [1]*
> This is because method
> {color:#353833}[doc|https://static.javadoc.io/org.elasticsearch/elasticsearch/5.0.0/org/elasticsearch/action/update/UpdateRequest.html#doc-java.lang.String-]{color}{color:#353833}(java.lang.String
> source){color} org.elasticsearch.action.update does not exist in
> <{color:#000080}elasticsearch-rest-version{color}>6.1.1</{color:#000080}elasticsearch-rest-version{color}>.
> In attach you can see test for this issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)