I am using JDK 15 and trying to install logstash. But when I use the command with configuration file I am getting this error -
"Error: Could not create the Java Virtual Machine. Error: A fatal
exception has occurred. Program will exit."
I have added an image of the error below. Please help me to solve the error.
Logstash does not support Java 15 yet, there is an open issue about it, but you won't be able to use Java 15 to run logstash until support is available.
You will need to use another Java version, currently logstash supports Java 8, Java 11 or Java 14.
You can also unset the JAVA_HOME environment variable and logstash will use its bundled java, which is AdoptOpenJDK 11.
Related
I am not able to launch the uiautomatorviewer from My windows 10. I am using JAVA version 15.
C:\Users\Bhavya\AppData\Local\Android\Sdk\tools\bin>uiautomatorviewer
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Can someone please suggest what should I do? Thanks in advance.
I am able to launch the UI Automator after downgrading the installed java version to my system .
To launch the UI Automator successfully, we need to run Java 8 .
I am trying to install Cassandra. I followed the instructions here.
https://www.youtube.com/watch?v=EEXtVn3zAqc
I had Java 14 and I when I tried to run Cassandra I got a message saying that Java 8 or 11 needs to be installed. So, I got Java 11 from the link below.
https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
I downloaded Cassandra and added the path to Environment Variables. I added the Java path to Environment Variables too. Now, I navigate to the Cassandra path in the Command Prompt and type 'cassandra.bat -f' and I get this message: 'Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java 11.0.8 is not supported.' I already have Java 11; I got it just for Cassandra. I am on Windows 10. How can I make this work?
Image of error message
I am trying to use Pentaho reporting tool (Version - 3.7). For that, I installed Java SE Development Kit 8 (1.8.0). When I am trying to run the report-designer.bat file, I got an error as show in the picture. Anyone can please help me?
I configured jmeter to run the test distributed using Azure Windows Virtual Machines. All machines are using windows.
The test ran successfully using the GUI mode and I can get the result saved on master
However when I try to run the test from the console jmeter -n -t plan.jmx -r the console says:
Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest
I' ve configured all the virtual machines (server and clients) like:
Java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Jmeter version 2.13
Jmeter Plugins 1.31
Any ideas what could be the issue?
Thanks
EDIT
I Downgrade Java version to 1.7 and now the error says
Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: org.apache.jmeter.threads.RemoteThreadsListenerTestElement
Can Jmeter Plugins the cause of the issue?
EDIT - FIXED
I changed Plugin version from 1.31 to 1.21 and now works!!!.
However I think, and i'm just guessing here, the error happens when I ran the test from GUI and then on the console. Probably GUI leaves a socket open or something like that, not sure.
Anyway this combination works
Java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Jmeter version 2.13
Jmeter Plugins 1.21 (only Standard Version)
Check the logs in jmeter.log (inside bin folder) file and if you have somewhere an error like this:
2018-09-17 14:41:32,097 ERROR o.a.j.e.ConvertListeners: Error replacing class org.apache.jmeter.threads.RemoteThreadsListenerTestElement by wrapper: class org.apache.jmeter.threads.RemoteThreadsListenerWrapper java.rmi.RemoteException: Cannot start. yout-pc-name is a loopback address.
Then start the jmeter by giving:
./jmeter -Djava.rmi.server.hostname=your_ip_address
I was struggling with:
NotSerializableException: org.apache.jmeter.threads.RemoteThreadsListenerTestElement
The problem in my case was:
Caused by: java.net.BindException: Address already in use (Bind failed)
This error info did not appear in the standard output, just the log file.
I want to try Cassandra. When trying to run Cassandra, writes an error:
Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
What's the problem?
Java -version
Java version "1.7.0_67"
Java (TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot (TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
python --version
Python 2.7.8
You'll get that error when you've downloaded a source distribution of Cassandra but haven't built it or when the CassandraDaemon.class file isn't in your classpath.
For the first problem:
You'll need the JDK 1.7 (which you already have) and ant to build C*.
Navigate to wherever you've extracted cassandra (I'll use ~/cassandra for this explanation) , Run ant and enjoy the awesome.
For the second, if your classpath is setup incorrectly something has gone wrong in the build process or the classpath has been modified. I'd verify that the classpath is what is expected by displaying it in the startup script (the cassandra executable) by adding echo $CLASSPATH near the bottom of the script (in my case it was line 212 for C* 2.1.0).
P.S. On windows you'll need to set CASSANDRA_HOME before being able to run C*.