-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.12.2, 4.0.0
-
Component/s: Reactive Streams
-
Labels:None
When I import both mongo-java-driver 3.12.2 and mongodb-driver-reactivestreams 4.0.0 into my project, simply calling this:
MongoClientOptions.builder().build();
will cause this exception:
Exception in thread "main" java.lang.NoSuchMethodError: com.mongodb.connection.ConnectionPoolSettings$Builder.maxWaitQueueSize(I)Lcom/mongodb/connection/ConnectionPoolSettings$Builder;
at com.mongodb.MongoClientOptions.<init>(MongoClientOptions.java:157)
at com.mongodb.MongoClientOptions.<init>(MongoClientOptions.java:58)
at com.mongodb.MongoClientOptions$Builder.build(MongoClientOptions.java:1734)
I'm only really using the reactivestreams driver, but there's a 3rd party library I'm using that uses the legacy driver. It would be nice to at least be able to import both libraries.