Details
-
Bug
-
Resolution: Done
-
Critical
-
fuse-7.11-GA
-
None
-
False
-
None
-
False
-
Release Notes
-
%
-
Todo
-
Release Note
Description
When the app upgrade from 7.10 to 7.11, my application cannot be started, the error indicated:
java.lang.ClassNotFoundException: com.mongodb.event.ConnectionPoolCreatedEvent
After investigating the issue, I found the issue is because:
Fuse 7.10.1 BOM [i.e., 7.10.0.fuse-sb2-7_10_1-00008-redhat-00001]
using following dependencies
--spring-boot-starter-actuator:2.3.12.RELEASE ----micrometer-core:1.5.14 --spring-data-mongodb: 3.09.RELEASE ----mongodb-driver-core: 3.12.7
Actuator framework and micrometer-core jars are not looking for com.mongodb.event.ConnectionPoolCreatedEvent in the classpath.
Fuse application starting up properly and mongodb client code also getting executed properly.
Fuse 7.11 BOM [i.e., 7.11.0.fuse-sb2-7_11_0-00028-redhat-00001
using following dependencies
--spring-boot-starter-actuator: 2.5.13 ----micrometer-core:1.7.11 --spring-data-mongodb: 3.2.11 ----mongodb-driver-core: 3.12.7
Actuator framework is introspecting following class io.micrometer.core.instrument.binder.mongodb.DefaultMongoConnectionPoolTagsProvider [from micrometer-core: 1.7.11].
io.micrometer.core.instrument.binder.mongodb.DefaultMongoConnectionPoolTagsProvider class requires com.mongodb.event.ConnectionPoolCreatedEvent in the classpath.
com.mongodb.event.ConnectionPoolCreatedEvent only available from mongodb-driver-core: 4.1.1
But Fuse 7.11 BOM is picking mongodb-driver-core: 3.12.7 which is a problem that need to be fixed. I attach the project which you can simply see the issue.
just run mvn spring-boot:run can see the error.
Would you pls advise how to fix the issue, can we use the mongodb 4.X driver for Fuse 7.X as a feature request?
Attachments
Issue Links
- relates to
-
ENTESB-19627 Micrometer Dependency Issue wrt Spring Boot and Camel
- Done