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

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

Ivan created CAMEL-12774:
----------------------------

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