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

MongoDB find by id operation throws an error

    XMLWordPrintable

Details

    • % %
    • +
    • Automated
    • Hide

      1. setup MongoDB connection
      2. create an integration with webhook as start step with "Type specification not required"
      3. add MongoDB as finish step, with Find by id operation
      4. deploy the integration
      6. POST an integer value (or anything else) to the webhook url

      Show
      1. setup MongoDB connection 2. create an integration with webhook as start step with "Type specification not required" 3. add MongoDB as finish step, with Find by id operation 4. deploy the integration 6. POST an integer value (or anything else) to the webhook url
    • Fuse 7.5 Sprint 53 - Blockers

    Description

      When trying to implement an operation with Find by id, all my attempts at providing the id to the MongoDB step end with the following error in the integration log:

      org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class org.apache.camel.converter.stream.InputStreamCache.
      	at org.bson.codecs.configuration.CodecCache.getOrThrow(CodecCache.java:46)
      	at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:63)
      	at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:37)
      	at com.mongodb.client.model.BuildersHelper.encodeValue(BuildersHelper.java:35)
      	at com.mongodb.client.model.Filters$SimpleEncodingFilter.toBsonDocument(Filters.java:1078)
      	at com.mongodb.FindIterableImpl.createQueryOperation(FindIterableImpl.java:180)
      	at com.mongodb.FindIterableImpl.execute(FindIterableImpl.java:175)
      	at com.mongodb.FindIterableImpl.first(FindIterableImpl.java:156)
      	at org.apache.camel.component.mongodb3.MongoDbProducer.lambda$createDoFindById$14(MongoDbProducer.java:590)
      	at org.apache.camel.component.mongodb3.MongoDbProducer.lambda$wrap$0(MongoDbProducer.java:255)
      	at org.apache.camel.component.mongodb3.MongoDbProducer.invokeOperation(MongoDbProducer.java:135)
      	at org.apache.camel.component.mongodb3.MongoDbProducer.process(MongoDbProducer.java:122)
      
      

      Attachments

        Activity

          People

            pcongius Pasquale Congiusti
            asmigala@redhat.com Andrej Smigala
            Andrej Smigala Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: