Summary: | improve error message when Test Script Recorder fails due to I/O problem | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | rikard_edgren <rikard.edgren> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 2.11 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | log output for issue |
Description
rikard_edgren
2014-01-06 10:54:18 UTC
(In reply to rikard_edgren from comment #0) > Created attachment 31172 [details] > log output for issue > > The new 2.10/2.11 Test Script Recorder seems promising, but some users have > a hard time getting it running. > https://wiki.apache.org/jmeter/TestRecording210 informs about how to get > Java JDK up and running. > But it also doesn't work when installed in a folder without full access > rights, e.g. C:\Program Files\apache-jmeter-2.11 > This seems to be a known issue according to thread > http://mail-archives.apache.org/mod_mbox/jmeter-dev/201311.mbox/ > %3cCAH9fUpb6USD6=-6T_2Fyf6GYBdmMmN7W5ySw8AyN+S133faHvQ@mail.gmail.com%3e > Not sure if it can be addressed so it works, but a more helpful error > message would be good. JMeter can be told to create the file in a different directory, see: http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder proxy.cert.directory > Client: Windows 8, 64-bit, Java JRE 1.7.0_45_b18, Java JDK 1.7.0_45, JMeter > 2.11 > JMeter location: C:\Program Files\apache-jmeter-2.11 > > 1. Edit jmeter.bat according to > https://wiki.apache.org/jmeter/TestRecording210 so Java JDK is accessed > 2. Start JMeter 2.11 > 3. In Workbench, Add Non-Test Elements, HTTP(S) Test Script Recorder > 4. Click Start > > Result: An extremely wide error message (2 lines): > "Could not create script recording proxy - see log for details: Command > :'"C:\Program Files\Java\jre7\bin\keytool" -genkeypair -alias :root_ca: > -dname "CN=_ DO NOT INSTALL unless this is your certificate (JMeter root > CA), OU=Username: rikard, C=US" -keyalg RSA -keystore proxyserver.jks > -storepass {redacted) -keypass {redacted) -validity 7 -ext bc:c' failed, > code: 1 > keytool error: java.io.FileNotFoundException: proxyserver.jks (Access is > denied)" > > (Full log message in attached JMeter210_ProgramFiles_ProxyRecordingError.txt) > > The path listed in error dialog is for Java, which is misleading, since the > work-around is to place JMeter in a folder with full administrative rights. I think the error message is clear that the path is for the command that failed. > Expected: A more informative error message that helps the user address the > problem, e.g. by hinting at access rights problems for the JMeter location. The last part of the error message clearly states: java.io.FileNotFoundException: proxyserver.jks (Access is denied)" Is that not clear? I suppose the command line could be dropped from the error dialog to make it a bit easier to read, but the information is there. > Or that it works also when JMeter is installed in Program Files (or similar) It does, provided that you tell JMeter where to store the JKS file > https://wiki.apache.org/jmeter/TestRecording210 could also be updated with > information regarding this. Yes URL: http://svn.apache.org/r1556930 Log: improve error message when Test Script Recorder fails due to I/O problem Bugzilla Id: 55959 Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java URL: http://svn.apache.org/r1556932 Log: improve error message when Test Script Recorder fails due to I/O problem Bugzilla Id: 55959 Modified: jmeter/trunk/xdocs/changes.xml This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3292 |