简体   繁体   中英

JMeter - MongoDB Connection Error - jmeter.JMeter: Uncaught exception: java.lang.NoSuchMethodError: com.mongodb.MongoClientOptions

I am using MongoDB_Source_Config and MongoDB_Source to connect to my Mongo DB as shown in images below - 在此处输入图片说明

在此处输入图片说明

but on running this I am getting following error -

jmeter.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:139)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:214)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Thread.java:745)

Did you change the mongodb driver jar ?

Because this issue means there is a different version of driver than the one embedded in JMeter.

Show versions of mongodb drivers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM