Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11848

Using MongoDB Tailable Cursor Consumer on non-capped collection results in NullPointerException (instead of proper error message)

    XMLWordPrintableJSON

Details

    • Novice

    Description

      When using the Camel MongoDB component with a tailable cursor consumer on a non-capped collection, you get a NullPointerException (also see http://camel.apache.org/mongodb.html#MongoDB-TailableCursorConsumer on this). While using this feature on a non-capped collection is not supported, the error message should be better (at the moment it only throws a NullPointerException because the code tries to unbox a null in a Boolean object). The code actually already has a better error message, but there is a small logic flaw that prevents the error message from showing up. See https://github.com/apache/camel/blob/camel-2.19.3/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java#L78 for the code.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              fwein Frank Wein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: