You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2021/02/11 09:14:00 UTC
[jira] [Assigned] (CAMEL-16179) NPE during MongoDB initialization
[ https://issues.apache.org/jira/browse/CAMEL-16179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Otavio Rodolfo Piske reassigned CAMEL-16179:
--------------------------------------------
Assignee: Otavio Rodolfo Piske
> NPE during MongoDB initialization
> ---------------------------------
>
> Key: CAMEL-16179
> URL: https://issues.apache.org/jira/browse/CAMEL-16179
> Project: Camel
> Issue Type: Bug
> Components: camel-mongodb
> Affects Versions: 3.8.0
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Major
>
> 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
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)