Closed asfimport closed 6 years ago
@milamberspace (migrated from Bugzilla):
Thank you for your report. This not an issue, JMeter try several ways to find the keytool util. The error message just say that JMeter don't find keytool util from PATH environment variable. After JMeter finally found keytool from JAVA_HOME variable, so the keystore can be generated with success.
So JMeter 3.2 despite the -not-error message will work correctly on your machine.
I've change this message from the level ERROR to INFO to avoid this (false) error message (and move the stacktrace into DEBUG level).
Thanks
URL: http://svn.apache.org/viewvc?rev=1792359&view=rev Log: Cannot run program "keytool": CreateProcess error=2 when starting JMeter 3.2 in gui mode Change level (from ERROR to INFO) of the exception message when JMeter try to find the keytool util from PATH env var. It's not a error because JMeter try to find keytool with several ways. Little code format to allow better code review. https://github.com/apache/jmeter/issues/4375
Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java jmeter/trunk/xdocs/changes.xml
Anthony Kearns (Bug 61026): Today i downloaded the new JMeter 3.2 build and tried to start it in gui mode e.g. ran the jmeter.bat from the bin folder.
JMeter started but i noticed there were errors in the log viewer. Please see the attached file for the exception details and my system details etc.
I do not have any third party plugins etc installed. I just literally downloaded and extracted and tried to run in user and admin mode.
Created attachment jmeter.log: Jmeter Log File
jmeter.log
```` 2017-04-22 23:18:24,416 INFO o.a.j.u.JMeterUtils: Setting Locale to en_GB 2017-04-22 23:18:24,443 INFO o.a.j.JMeter: Loading user properties from: user.properties 2017-04-22 23:18:24,444 INFO o.a.j.JMeter: Loading system properties from: system.properties 2017-04-22 23:18:24,455 INFO o.a.j.JMeter: Copyright (c) 1998-2017 The Apache Software Foundation 2017-04-22 23:18:24,455 INFO o.a.j.JMeter: Version 3.2 r1790748 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: java.version=1.8.0_131 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: os.name=Windows 7 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: os.arch=amd64 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: os.version=6.1 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: file.encoding=Cp1252 2017-04-22 23:18:24,456 INFO o.a.j.JMeter: Max memory =536870912 2017-04-22 23:18:24,457 INFO o.a.j.JMeter: Available Processors =4 2017-04-22 23:18:24,463 INFO o.a.j.JMeter: Default Locale=English (United Kingdom) 2017-04-22 23:18:24,463 INFO o.a.j.JMeter: JMeter Locale=English (United Kingdom) 2017-04-22 23:18:24,463 INFO o.a.j.JMeter: JMeterHome=C:\Users\Dell 15\Desktop\New JMeter\apache-jmeter-3.2 2017-04-22 23:18:24,463 INFO o.a.j.JMeter: user.dir =C:\Users\Dell 15\Desktop\New JMeter\apache-jmeter-3.2\bin 2017-04-22 23:18:24,464 INFO o.a.j.JMeter: PWD =C:\Users\Dell 15\Desktop\New JMeter\apache-jmeter-3.2\bin 2017-04-22 23:18:24,465 INFO o.a.j.JMeter: IP: 10.11.244.160 Name: Dell15-PC FullName: Dell15-PC 2017-04-22 23:18:24,806 INFO o.a.j.g.a.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2017-04-22 23:18:24,817 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2017-04-22 23:18:25,782 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2017-04-22 23:18:25,782 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2017-04-22 23:18:27,907 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.assertions.BSFAssertion 2017-04-22 23:18:28,697 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.extractor.BSFPostProcessor 2017-04-22 23:18:28,783 INFO o.a.j.g.u.MenuFactory: Skipping org.apache.jmeter.modifiers.BSFPreProcessor 2017-04-22 23:18:28,855 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-22 23:18:28,856 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-22 23:18:28,856 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-22 23:18:28,856 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2017-04-22 23:18:28,856 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2017-04-22 23:18:28,857 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser 2017-04-22 23:18:29,256 ERROR o.a.j.e.KeyToolUtils: Exception checking for keytool existence, will return false java.io.IOException: Cannot run program "keytool": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) ~[?:1.8.0_131] at org.apache.jorphan.exec.SystemCommand.run(SystemCommand.java:142) ~[jorphan.jar:3.2 r1790748] at org.apache.jorphan.exec.SystemCommand.run(SystemCommand.java:125) ~[jorphan.jar:3.2 r1790748] at org.apache.jorphan.exec.KeyToolUtils.checkKeytool(KeyToolUtils.java:436) ~[jorphan.jar:3.2 r1790748] at org.apache.jorphan.exec.KeyToolUtils.Severity: normal OS: All