Re: Error while using Custom Samplers
Ok, I can take a look and test the currently nightly version. Well, the current mongodb sampler works really well, but my tutor asked me to use a real dataset to do the tests... So, the sampler I've developed imports a .csv file that contains the data from a real datbase and uses it to load the tests. Since I'm a new user of JMeter, I couldn't find another way to do this without using a custom sampler... Thank you again for the help! Att., *Allexandre Sampaio* *Sistemas de Informação - IFBA* *Vitória da Conquista - BA* *(77) 99964 3521* 2016-10-15 7:03 GMT-03:00 Felix Schumacher < felix.schumac...@internetallee.de>: > > > Am 14. Oktober 2016 22:08:35 MESZ, schrieb Allexandre Sampaio < > allexandre...@gmail.com>: > >Well, I've just taken the old version of JMeter I had here... now I'm > >upgrading it to the newest version. > > It would be nice, of you could test the current nightly, too. We are > hopefully releasing the next JMeter version really soon. > > > > >About the mongodb driver that came with JMeter, I didin't even thought > >in > >removing it, and it was the problem > >Now I removed and replaced it with the same mongodb driver I used to > >compile the project, and the sampler works! > > > >Thank you, Felix, you helped me a lot! > > Nice to know, that your problem is solved. > > Could you tell us, what you are missing from the current mongodb sampler? > Apart from the newer driver version? > > Felix > > > > >Att., > > > >*Allexandre Sampaio* > >*Sistemas de Informação - IFBA* > >*Vitória da Conquista - BA* > >*(77) 99964 3521* > > > >2016-10-14 15:17 GMT-03:00 Felix Schumacher < > >felix.schumac...@internetallee.de>: > > > >> > >> > >> Am 14. Oktober 2016 17:11:30 MESZ, schrieb Allexandre Sampaio < > >> allexandre...@gmail.com>: > >> >Right, I'm using the version 3.0.0 of mongo-java-driver (available > >in > >> > >>http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.0.0/). > >> >The missing method is the "getDatabase(DB_NAME)", that returns the > >> >instance > >> >of the database. (I did some tests while coding the sampler and the > >> >getDatabase method worked fine). > >> >Actually, I'm coding my own sampler, that's because I need to do > >some > >> >specific operations in the database, using my own dataset, so, I > >> >couldn't > >> >use the mongodb sampler recomended. > >> >Finally, I'm using JMeter version 2.13, on a Ubuntu 16.10 desktop > >with > >> >Java > >> >8. > >> > >> Did you remove the mongodb driver that came with JMeter? > >> > >> And why are you still using JMeter 2.13? > >> > >> Felix > >> > >> > > >> > > >> >Att., > >> > > >> >*Allexandre Sampaio* > >> >*Sistemas de Informação - IFBA* > >> >*Vitória da Conquista - BA* > >> >*(77) 99964 3521* > >> > > >> >2016-10-14 11:42 GMT-03:00 Felix Schumacher < > >> >felix.schumac...@internetallee.de>: > >> > > >> >> > >> >> > >> >> Am 14. Oktober 2016 15:08:54 MESZ, schrieb Allexandre Sampaio < > >> >> allexandre...@gmail.com>: > >> >> >Hi, I'm having some trouble while using custom samplers on > >JMeter. > >> >> >When I try to load the tests, the console shows a message that > >says > >> >> >"NoSuchMethodError", refering to a method from the > >> >> >mongo-java-driver-3.0.0 > >> >> >library. > >> >> >After search for help, I couldn't fix the problem, in every topic > >> >I've > >> >> >read, the indicated fix method was by putting the library .jar in > >> >the > >> >> >JMeter lib/ext folder,but I'm sure I did this! > >> >> >Did anyone have had a problem like this? > >> >> > >> >> I haven't used the mongodb sampler, but to get more help, it > >> >certainly > >> >> would help to give more information. > >> >> > >> >> What driver jar did you use exactly, which method is missing? > >Which > >> >> sampler did you use? Which version is your JMeter? > >> >> > >> >> It might be helpful to have your Java version or OS and it's > >version. > >> >> > >> >> Regards, > >> >> Felix > >> >> > > >> >> >Thanks, > >> >> >*Allexandre Sampaio* > >> >> > >> >> > >> >> > >- > >> >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> >> > >> >> > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > >
Re: Error while using Custom Samplers
Well, I've just taken the old version of JMeter I had here... now I'm upgrading it to the newest version. About the mongodb driver that came with JMeter, I didin't even thought in removing it, and it was the problem Now I removed and replaced it with the same mongodb driver I used to compile the project, and the sampler works! Thank you, Felix, you helped me a lot! Att., *Allexandre Sampaio* *Sistemas de Informação - IFBA* *Vitória da Conquista - BA* *(77) 99964 3521* 2016-10-14 15:17 GMT-03:00 Felix Schumacher < felix.schumac...@internetallee.de>: > > > Am 14. Oktober 2016 17:11:30 MESZ, schrieb Allexandre Sampaio < > allexandre...@gmail.com>: > >Right, I'm using the version 3.0.0 of mongo-java-driver (available in > >http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.0.0/). > >The missing method is the "getDatabase(DB_NAME)", that returns the > >instance > >of the database. (I did some tests while coding the sampler and the > >getDatabase method worked fine). > >Actually, I'm coding my own sampler, that's because I need to do some > >specific operations in the database, using my own dataset, so, I > >couldn't > >use the mongodb sampler recomended. > >Finally, I'm using JMeter version 2.13, on a Ubuntu 16.10 desktop with > >Java > >8. > > Did you remove the mongodb driver that came with JMeter? > > And why are you still using JMeter 2.13? > > Felix > > > > > > >Att., > > > >*Allexandre Sampaio* > >*Sistemas de Informação - IFBA* > >*Vitória da Conquista - BA* > >*(77) 99964 3521* > > > >2016-10-14 11:42 GMT-03:00 Felix Schumacher < > >felix.schumac...@internetallee.de>: > > > >> > >> > >> Am 14. Oktober 2016 15:08:54 MESZ, schrieb Allexandre Sampaio < > >> allexandre...@gmail.com>: > >> >Hi, I'm having some trouble while using custom samplers on JMeter. > >> >When I try to load the tests, the console shows a message that says > >> >"NoSuchMethodError", refering to a method from the > >> >mongo-java-driver-3.0.0 > >> >library. > >> >After search for help, I couldn't fix the problem, in every topic > >I've > >> >read, the indicated fix method was by putting the library .jar in > >the > >> >JMeter lib/ext folder,but I'm sure I did this! > >> >Did anyone have had a problem like this? > >> > >> I haven't used the mongodb sampler, but to get more help, it > >certainly > >> would help to give more information. > >> > >> What driver jar did you use exactly, which method is missing? Which > >> sampler did you use? Which version is your JMeter? > >> > >> It might be helpful to have your Java version or OS and it's version. > >> > >> Regards, > >> Felix > >> > > >> >Thanks, > >> >*Allexandre Sampaio* > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > >
Re: Error while using Custom Samplers
Right, I'm using the version 3.0.0 of mongo-java-driver (available in http://central.maven.org/maven2/org/mongodb/mongo-java-driver/3.0.0/). The missing method is the "getDatabase(DB_NAME)", that returns the instance of the database. (I did some tests while coding the sampler and the getDatabase method worked fine). Actually, I'm coding my own sampler, that's because I need to do some specific operations in the database, using my own dataset, so, I couldn't use the mongodb sampler recomended. Finally, I'm using JMeter version 2.13, on a Ubuntu 16.10 desktop with Java 8. Att., *Allexandre Sampaio* *Sistemas de Informação - IFBA* *Vitória da Conquista - BA* *(77) 99964 3521* 2016-10-14 11:42 GMT-03:00 Felix Schumacher < felix.schumac...@internetallee.de>: > > > Am 14. Oktober 2016 15:08:54 MESZ, schrieb Allexandre Sampaio < > allexandre...@gmail.com>: > >Hi, I'm having some trouble while using custom samplers on JMeter. > >When I try to load the tests, the console shows a message that says > >"NoSuchMethodError", refering to a method from the > >mongo-java-driver-3.0.0 > >library. > >After search for help, I couldn't fix the problem, in every topic I've > >read, the indicated fix method was by putting the library .jar in the > >JMeter lib/ext folder,but I'm sure I did this! > >Did anyone have had a problem like this? > > I haven't used the mongodb sampler, but to get more help, it certainly > would help to give more information. > > What driver jar did you use exactly, which method is missing? Which > sampler did you use? Which version is your JMeter? > > It might be helpful to have your Java version or OS and it's version. > > Regards, > Felix > > > >Thanks, > >*Allexandre Sampaio* > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > >
Error while using Custom Samplers
Hi, I'm having some trouble while using custom samplers on JMeter. When I try to load the tests, the console shows a message that says "NoSuchMethodError", refering to a method from the mongo-java-driver-3.0.0 library. After search for help, I couldn't fix the problem, in every topic I've read, the indicated fix method was by putting the library .jar in the JMeter lib/ext folder,but I'm sure I did this! Did anyone have had a problem like this? Thanks, *Allexandre Sampaio*