You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2018/09/04 16:37:00 UTC

[jira] [Assigned] (CAMEL-12774) Error during type conversion from type: java.lang.String to the required type: org.elasticsearch.action.update.UpdateRequest

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

Andrea Cosentino reassigned CAMEL-12774:
----------------------------------------

    Assignee: Andrea Cosentino

> 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
>         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)