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

NPE during MongoDB initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.9.0
    • camel-mongodb
    • None
    • Unknown

    Description

      Under some conditions, the initialization of the MongoDB component may throw an NPE because the mongoConnection is null at this point: https://github.com/apache/camel/blob/camel-3.8.x/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java#L235

      And it is null at this point because the doStart is not being called for the source connector: https://github.com/apache/camel/blob/camel-3.8.x/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java#L323

       

      This seems to lead to the following issue on the Camel Kafka Connector: https://github.com/apache/camel-kafka-connector/issues/974

       

       

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: