Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred: null

Tags:

jmeter

When i am starting jmeter than it showing the follwing error An error occurred: null

My process to start jmeter is

root@L411:/opt/apache-jmeter-2.12/bin# sh jmeter An error occurred: null

like image 591
Nits Avatar asked Feb 27 '15 07:02

Nits


People also ask

Why does my iOS 15 update keep failing?

You must have a stable network connection while installing new software update. Unstable network may be a reason that you are receiving iOS software update failed error messages. You need to make sure you have stable wifi connection.

Why does it say error when I try to update iOS?

Sometimes, an iOS software update failure can appear if your device doesn't have enough space to download and install an update. So you need to manage the storage to free up some space by deleting unwanted apps, photos, videos, cache, and junk files, etc.


3 Answers

This happened to me as well. In my case, I was running Jmeter 2.13 on OpenJDK 1.8 on my 64-bit Linux machine. I fixed it by installing Oracle's Java instead, and switching to it with:

alternatives --config java

I'm a bit annoyed that I have to do this now, as it used to work before (I think).

like image 103
Shayne Avatar answered Dec 30 '22 11:12

Shayne


What OS are you using? I was getting the same error in Fedora 27 and I fixed it by installing the OpenJDK runtime environment (java-1.8.0-openjdk)

sudo dnf install java-1.8.0-openjdk
like image 24
Arier Avatar answered Dec 30 '22 09:12

Arier


If after executing jmeter.sh your apache-jmeter-x.xx/bin/jmeter.log contains something like

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)

you probably have default-jdk-headless installed. Installing default package (sudo yum install java-1.8.0-openjdk) fixed the issue for me.

like image 39
madness Avatar answered Dec 30 '22 10:12

madness