[JAVA-2924] JMeter: Uncaught exception: JMeter: Uncaught exception: java.lang.NoSuchMethodError: Created: 11/Aug/18  Updated: 13/Aug/18  Resolved: 13/Aug/18

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: sourabh nigam Assignee: Ross Lawley
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

I have tried to intergrate Mongo on Jmeter, Following version I am using 

Jmeter : 4.0

lib/mongo-java-driver-3.0.2

lib\ext\ApacheJMeter_mongodb-4.0

 

 

JMeter: Uncaught exception: JMeter: Uncaught exception: java.lang.NoSuchMethodError: com.mongodb.MongoClientOptions$Builder.autoConnectRetry(Z)Lcom/mongodb/MongoClientOptions$Builder; at org.apache.jmeter.protocol.mongodb.config.MongoSourceElement.testStarted(MongoSourceElement.java:117) ~[ApacheJMeter_mongodb-4.0.jar:4.0 r1823414] at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:215) ~[ApacheJMeter_core-4.0.jar:4.0 r1823414] at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:384) ~[ApacheJMeter_core-4.0.jar:4.0 r1823414] at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]



 Comments   
Comment by Ross Lawley [ 13/Aug/18 ]

Hi sourabh,

MongoClientOptions$Builder.autoConnectRetry was deprecated in 2.13/2.14 and removed for the 3.x series of the Mongo Java driver. Having looked at the JMeter parent pom it looks its tied to the Mongo Java Driver 2.11.3. JMeter should be compatible to the latest 2.14 version of the java driver but not the 3.x series of the driver. From your report you are using the 3.0.2 version of the driver and that is not compatible. Just to note the latest version of the Java driver is 3.8.0.

I would recommend filing an issue with JMeter to update their MongoDB dependency.

As this isn't an issue with the MongoDB Java Driver, I'm closing this ticket as "Won't fix".

Ross

Generated at Thu Feb 08 08:58:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.