Not able to right click on anything on Jmeter - jmeter

I am not able to right click on Jmeter 2.11, getting the following error:
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory.
Can anyone help on this.
Thanx

Did you any plugin to JMeter? If Yes, remove that plugin and start the JMeter.
Following are some of the resources:
https://newspaint.wordpress.com/2013/08/21/jmeter-could-not-initialize-menufactory-class/
http://jmeter.512774.n5.nabble.com/java-lang-NoClassDefFoundError-after-starting-JMeter-with-custom-plugin-td5716243.html
To add any jars, easiest way is to use Plugin Manager

I suggest you remove all 3rd party plugins and install JMeter 3.0 instead of 2.11 which is now old.
http://jmeter.apache.org/changes.html

Related

dotcms osgi plugin from examples web interceptor

I'm evaluating dotcms through the docker demo, version 22.02
I'm trying the plugin samples provided by dotcms, example:
https://github.com/dotCMS/plugin-seeds/tree/master/OSGi/com.dotcms.webinterceptor
I can build the plugin and deploy it through the dotcms UI. But when I try to access the plugin (http://localhost:8080/app/helloworld?action=wrap) I got a 404 error.
I tried to replace /app by /application or remove /app in the url but same result: 404 error.
Where is the problem? The code is an example from dotcms and the demo docker is also provided by dotcms.
I'm evaluating the product and don't want to spend days to test plugin dev capabilities.
Thanks for your help
Regards,
Laurent
The example was expecting a service reference that no longer exists and so never properly inited. I've updated the example and removed the old reference. Please pull it down and try it again.
https://github.com/dotCMS/plugin-seeds/tree/master/OSGi/com.dotcms.webinterceptor

Processing 3: NullPointerException using PTreeMappa

I'm using Processing 3 for generating a Treemap.I installed gicentreUtils and placed TreeMappa file in the library folder of Processing. I'm getting nullPointerException in line:
pTreeMappa = new PTreeMappa(this).
The full code can be found in this
link
Can someone please let me know how to resolve this error.
Thanks
It seems the TreeMapa library hasn't been updated in a few years and internally it may use some Processing code that changed from version 2.x to 3.x (like windows/frames/etc.) which is why the error might occur.
I advise using TreeMapa with Processing 2.2.1 available on the Processing Downloads page

Bad request issue with latest version of selenium and firefox

I am working on phpunit-selenium for browser automation with headless Firefox. I updated both selenium and Firefox to latest version. And it started throwing error for me.
“PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Bad request“
Now I googled for this and found that this issue is related to hosts files:
Unable to call FirefoxDriver constructor
https://code.google.com/p/selenium/issues/detail?id=3280
But I cannot update hosts file due to application restrictions. Is there another way to fix this?
Modifying the profile should resolve the issue for you.
Note that this is a Java code fragment, You would have to do something similar with the php API:
profile.setPreference(FirefoxProfile.ALLOWED_HOSTS_PREFERENCE,"set.myhost.com");

issue with login to magento 1.8 using jmeter

one of my friend is using jmeter(Testing tool) for testing the magento 1.8 application.
But she is unable to log in using jmeter. Getting some error "no_cache cookie".
How this can be fixed?
Please help.
Did you try to add HTTP Cookie Manager? It may be a reason of error

JUnit Scripts Does not run with JMeter

I have the JUNIT code in my eclipse
My workflow is as follows:
Login to an Web Application
Enter the userID and password.
Create some User
Log out
when i try to execute this script using the JMeter it could not succeeded.
MY JMeter does only launch the browser and get into my web application, after that it gets failed.
But my JUnit code works fine when execute using eclipse
Can some one help me in this?
Make sure that the correct Classname/Test Method is selected in the JUnit Request Sampler. Make sure errors are appended by checking the boxes as in the image below.
Use the fail() method to debug. Put it in your catch blocks or wherever needed.
If that seems too tedious to you then write your own mini logger (or use an existing one) and append all errors to a file. (Probably the best option).
Just throwing it out there: it is possible to use JOptionPane.showMessageDialog(null, e.toString()); to debug by adding the rt.jar from your jdk folder. This can get annoying though...
For setup or tutorial please see Jmeter Junit Issue

Resources