1

I am using MongoDB_Source_Config and MongoDB_Source to connect to my Mongo DB as shown in images below - enter image description here

enter image description here

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)
0

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

5 Comments

- I am using jmeter 2.11 and mongo-java-driver-3.0.2.jar
Yes ... it was version issue, downgraded my mongodriver. It's working fine now. Thanks a ton.
I would be very interested to know how you use MongoDB sampler ? In the JMeter team we intend to drop it as we didn't have much feedback on it.
I am creating some accounts and later-on deleting those accounts from mongo db
I am using jmeter 2.11 r1554548 that is already available in software repo. of my company. They might have changed some jars etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.