JMeter NonGUIDriver error in non-GUI mode - jmeter

When I run JMeter test suite jmeter -n -t test.jmx in non-GUI mode on Ubuntu server, I get an error:
Error in NonGUIDriver com.thoughtworks.xstream.security.ForbiddenClassException: org.apache.jmeter.save.ScriptWrapper
What does this error mean? I installed JMeter on Ubuntu by command sudo apt install jmeter

Most probably you're trying to open test plan created in more recent JMeter version with a very old JMeter from Ubuntu repositories.
Looking at jmeter package details it appears that Ubuntu has JMeter 2.13
JMeter 2.13 was released in 2015
Current stable version is JMeter 5.5
So remove the installation by apt and follow "normal" JMeter installation procedure:
Install Java version not lower than 8, i.e. apt install openjdk-8-jdk
Download JMeter 5.5, i.e. wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.5.tgz
Unpack it, i.e. tar xf apache-jmeter-5.5.tgz
Launch it pushd apache-jmeter-5.5/bin/ && ./jmeter.sh
The error should go away (at least this one)
More information: JMeter Installation: How to Get Started

Related

jmeter missing.class com.thoughtworks.xstream.converters.ConversionException

I was running my script and it hanged and I had to force close.
Now this error appears:
Download "Plugins-manager.jar" from
https://jmeter-plugins.org/downloads/all/
Put downloaded .jar into JMETER_INSTALLED_DIRECTORY/lib/ext directory
Restart jmeter.
Open the script, it will show a download missing component dialog. Download missing component.
Hope this will help
It is indeed an error related to you missing the JMeter plugins. Since i am new to programming, I thought it might be useful i offer a more detailed guide on JMeter installation on Mac.
Prerequisites:
You have Java installed - i work with Java 8 version thus if you have an older or a newer version it might not work.
You can check your version with ~ java -version.
Here you can download the jdk 8: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
You have brew installed. To install it run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”, go to https://brew.sh/ for more info.
How to do it
Let’s first download the JMeter (version 4.0) from https://jmeter.apache.org/download_jmeter.cgi. You can find the zip files in the first section under Binaries - apache-jmeter-4.0.zip.
Alternatively, run brew install jmeter.
Then move it from Downloads to your root directory: (just for simplicity, you can put it anywhere you wish.
install apache-jmeter
Go inside that folder and it’s bin like this: ~ cd apache-jmeter-4.0/bin
From there run ./jmeter.sh
In JMeter you try to open the desired file but get the 'missing.class..' error:
missing.class com.thoughtworks.xstream.converters.ConversionException
Installing the JMeter plugins
Go to https://jmeter-plugins.org/wiki/PluginsManager/ and download the Plugins Manager JAR file.
Following the instructions: 'put the file into lib/ext directory' translates to you going to your apache-jmeter-4.0 folder (see the first screen shot) and place the file there inside lib/ext folder.  
restart JMeter and you can see the Plugins Manager in JMeter Options.
Download plugins-manager.jar from https://jmeter-plugins.org/downloads/all/
Put plugins-manager.jar into jmeter/lib/ext
Restart jmeter
Open script, it will ask to download dependencies, press yes
Go to Plugin Manager and install all the required jar dependency
Re-start the application
I installed Jmeter on Ubuntu Linux using 'apt-get install jmeter', which it seems installs a very old version of Jmeter.
Old version => 2.x
I downloaded the latest version using curl and installed it and the problem disappeared.
New version => 5.x.
I think this is due to lower version JMeter.
Try with installing Apache Jmeter 3.3 and install python with enable "Add python.exe to Path http://www.python.org/downloads
i know it is late to respond to this query but it may help others who might face this issue in future.
For me, Moving to the latest Jmeter version 5.1.1 did the trick.
I was facing the same issue because i downloaded jmeter from
sudo apt install jmeter
and it installed the jmeter of version 2.X.X. Which i guess doesn't support anything now a days. I uninstalled the jmeter from command:
sudo apt purge jmeter
And installed the latest jmeter from http://jmeter.apache.org/download_jmeter.cgi?Preferred=https%3A%2F%2Fdownloads.apache.org%2F After that in bin folder as i'm using ubuntu Os i used command
sh jmeter.sh
Jmeter worked fine!!!

Installing Oracle Datamodeler on Ubuntu 16.04

I'm in the process of setting up an oracle development environment on my Ubuntu 16.04 workstation. Installing Oracle 12c was a challenge, but there were several very useful tutorials that put me on the right track. Following Dizwell's instructions -- SQL developer was a piece of cake to set up.
Initially, i was able to convert oracle's rpm package to a deb and install it succesfully. The first time I launched datamodeler it worked properly. On all subsequent launches I recieve the following series of errors:
Custom UI class oracle.bali.ewt.olaf2.OracleLookAndFeel not on classpath
Error: Data Modeler can't recognize the JDK version
I've purged and reinstalled the .deb package several times, and I can no longer get it to launch. Any suggestions on how to proceed would be appreciated.
To install DM, I followed Oracle Noob's Instructions as below:
sudo alien --scripts data*rpm
dpkg -i data*deb
I added this line to the datamodeler startup script:
unset -v GNOME_DESKTOP_SESSION_ID
Today, I need to get thorough the installation of Oracle Data Modeler (ODM) on my Ubuntu 16.04 and I've done this with success with below steps.
Info: Done as a sudo non-root user
Install Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Set the version of Java (java, javac):
sudo update-alternatives --config java
sudo update-alternatives --config javac
Then check if the version is correct
java -version
javac -version
and you should see something like:
$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
$ javac -version
javac 1.8.0_121
Install Oracle Data Modeler
I use most updated, stable version of ODM for the day of writing this answer (v4.1.5).
Before start we need alien converter, so we do:
$ sudo apt-get install alien
Then download the modeler (here)
Use alien to convert the *.rpm package into *.deb
cd <where-you-download-the-rpm-package>
sudo alien datamodeler-4.1.5.907-1.noarch.rpm # it might take some time
sudo dpkg -i datamodeler_4.1.5.907-2_all.deb
Small note about using --scripts flag (ref:alien manual)
-c, --scripts
Try to convert the scripts that are meant to be run when the package is installed and removed. Use this with caution, because these scripts might be designed to work on a system unlike your own, and could cause problems. It is recommended that you examine the scripts by hand and check to see what they do before using this option.
After this step, you're able to run it form the console:
$ datamodeler
Note: If you want to run Data Modeler from startup, then you need to add new entry into the /usr/share/applications (for all users) or ~/.local/share/applications/ (only for current user) like the example below.
[Desktop Entry]
Version=1.0
Type=Application
Name=Oracle Data Modeler
GenericName=Oracle Data Modeler
Comment=Oracle SQL Developer Data Modeler is a free graphical tool that enhances productivity and simplifies data modeling tasks.
Exec=datamodeler
Terminal=false
MimeType=text/plain;
Icon=datamodeler
Categories=SQLEditor;Development;
StartupNotify=true
Actions=Window;Document;
Small note about using --scripts flag (ref:alien manual)
-c, --scripts
Just a note to help others, The above line may not be required for some versions. For anyone using Ubuntu, check Ubuntu Software before you follow any tutorials because Oracle SQL Developer is available as a standard version in some versions of Ubuntu(I did not check all versions but 16.04LTS). Also, note that most LTS versions have several basic versions of software that will most likely work well for your requirements.
sudo snap install osddm
Snap is the ubuntu version of packages.
https://www.ubuntu.com/desktop/snappy
You can also find Data modeler at Ubuntu Software.

Execute multiple .jmx file in parallel

How can I execute multiple .jmx file in parallel from terminal?
I tried using command as
./jmeter -n -t /path/file1.jmx /path/file2.jmx but it throws error
The fastest and the easiest way is using Taurus tool as a wrapper for running your existing JMeter scripts. Taurus naturally supports JMeter so you won't have change anything. The relevant Taurus YAML config file will look like:
---
execution:
- scenario:
script: /path/file1.jmx
- scenario:
script: /path/file2.jmx
- scenario:
script: /etc
See Taurus - Working with Multiple JMeter Tests article for more details on combining several tests into one with Taurus
Use Taurus for executing multiple jmx script in parallel.
Here is the process:
Install Taurus Either by installer or do manually.
If you are installing manually and please follow these steps:
Download Python from their download section.
Go to Python>Scripts installed folder and run following commands:
pip install --upgrade pip
pip install lxml
pip install psutil
Now install Taurus by "pip install bzt"
pip install --upgrade bzt
After installation you well get .bzt folder & .bzt-rc in your home directory.
Edit .bzt-rc and uncomment:following
Note: According to your jdk give version e.g: if you have jdk 7 give version: 3.0(Since Jmeter is dependent on jdk version,please careful here).
After doing all steps now you are ready to execute multiple jmx file in following way:
bzt a.jmx b.jmx c.jmx
This way you can execute multiple jmx file at one instance.
If you have further query please reach to me by either by Email or any other social sites.

elasticsearch marvel installation on windows

I have downloaded elasticsearch2.0 and it runs with no problems. I want to add marvel plugin and tried all instruction on the https://www.elastic.co/guide/en/marvel/current/installing-marvel.html and Install marvel plugin for Elasticsearch - it didn't help.
I am trying to install the plugin on windows8.1 64bit. When I typed
bin/plugin install elasticsearch/marvel/latest
from elasticsearch directory it says:
bin is not recognized as an internal or external command, operable program or batch file
when I typed
plugin install elasticsearch/marvel/latest
from elasticsearch/bin directory it says:
Failed to install elasticsearch/marvel/latest, reason: failed to download out of
all possible locations..., use -verbose to get detailed information
I also tried manual installation. I downloaded latest marvel (2.0) and put in elasticsearch/plugin/marvel directory then run
plugin install marvel -u marvelfilepath
It gives error
unrecognized option -u "-i , -u " commands are not recognized from cmd.
How can I install marvel plugin. Any help is welcome.
Try,copying extracted marvel binaries folder in ES_HOME/plugins directory and restart your node.Restarting the node will automatically pickup plugins available in ES_HOME/plugins directory.

Can anyone advise me on this ? I tried to compile using maven and got this message alongwith "Build Failure" message

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (generate-core-thrift) on project accumulo-core: Command execution failed. Cannot run program "C:\Documents and Settings\deepak\trunk\core\src\main\thrift\thrift.sh" (in directory "C:\Documents and Settings\deepak\trunk\core"): CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
I went to the directory trunk containing pom.xml and executed: mvn compile
I tried finding the plugin at http://maven.apache.org/plugins/ but couldn't find any .
Can anyone please explain what the problem is ? These open source things are so complex.
Apache Accumulo does not currently support Windows in its build system. Consider using Ubuntu, Fedora, CentOS, Mac OSX, or another Linux or BSD system. If you really must build in Windows, you my have luck with Cygwin.
It's 2022 and we can now build Apache Accumulo on Windows using Windows Subsystem for Linux.
If you want to access your Linux files from Windows, the path is:
\\wsl$\<DistroName>\home\<UserName>
Note: the above is only available when you have a WSL instance up and running.
Assuming you have a clean install of Ubuntu on WSL. Open a WSL terminal for the setup steps.
Setup
Install OpenJDK
Update list of available packages.
sudo apt update
Search for available JDKs.
apt search jdk
We will be installing JDK11 as Accumulo uses that.
sudo apt-get install openjdk-11-jdk
Check for a successful installation.
java --version
Configure JAVA_HOME
readlink -f $(which java)
Removing /bin/java from the end of the output of the above command gives us the path to the JDK.
nano ~/.bashrc
Add the following line at the bottom of the file.
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
Reflect changes.
source ~/.bashrc
Ensure the changes are in effect.
echo $JAVA_HOME
Install make and g++
sudo apt install make
sudo apt install g++
Build
Clone the repo and cd to repo root.
Now build using (from WSL terminal)
mvn package
If you are using a Windows terminal (likely when using IDEs or GUI tools) prefix wsl,
wsl mvn package
There is another description for error 193: "You may see Windows error code 193 when you are starting a Windows Share Point server or a Windows Exchange server. The error message will also generate general Service Control Manager messages in your system logs, too."
Windows error code 193
Although it doesn't have direct answer on your problem but may be it will be also helpful for you.

Resources