Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13920

[Fuse Online] - DataMapper : Convert kafka message to json ends with org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.util.List

    XMLWordPrintable

Details

    • % %
    • ?
    • Hide

      Exception seems to be caused by the log step.
      Removing the log step should avoid the exception

      Show
      Exception seems to be caused by the log step. Removing the log step should avoid the exception
    • Hide

      From kafka topic to MongoDB

      Show
      From kafka topic to MongoDB

    Description

      With an integration from Kafka to MongoDB with a json payload, this ends with the following error at the datamapper level:

      2020-05-26 20:21:39.954 ERROR 1 --- [nsumer[mytopic]] o.a.camel.processor.DefaultErrorHandler  : Failed delivery for (MessageId: i-M8HdSUk0JGAt6ci5-ptz on ExchangeId: i-M8HdSUb0JGAt6ci5-poz). Exhausted after delivery attempt: 1 caught: org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.util.List with value {"_id":null,"email":"ed11@walker4420update.com","first_name":"Edwar1d20u","last_name":"Walker120u"} due org.bson.BsonInvalidOperationException: readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.
      

      Attachments

        Activity

          People

            pcongius Pasquale Congiusti
            rhn-support-aboucham Abel Bouchama
            Matej Kralik Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: