On 8 August 2014 07:51, A D <[email protected]> wrote:
> Use Java 6 instead of Java 7 with "sudo update-alternatives --config java". 
> This worked for me on.

The problem is that keytool in Java 6 may not include all the features
JMeter needs.

>> Date: Fri, 8 Aug 2014 01:52:56 +0100
>> Subject: Re: HTTPS Test Script Recorder certificate problems
>> From: [email protected]
>> To: [email protected]
>>
>> On 25 July 2014 20:30, Doug Breaux <[email protected]> wrote:
>> > I've updated my PATH to include keytool:
>> > https://wiki.apache.org/jmeter/TestRecording210
>> >
>> > I've deleted the proxyserver.jks file:
>> > http://stackoverflow.com/questions/21294354/apache-jmeter-not-generating-apachejmetertemporaryrootca-crt-for-https-recording
>> >
>> > I'm Java 7, although IBM Java 7:
>> > http://stackoverflow.com/questions/21053346/apachejmetertemporaryrootca-crt-not-generated
>>
>> That might be the problem - it's possible that the keytool utility
>> works differently.
>> what does keytool --help produce?
>>
>> Can you try using Oracle Java 7?
>>
>> Is IBM Java 7 available for download?
>>
>> > Now I get this error when starting the recorder:
>> > 2014/07/25 14:28:40 WARN  - jmeter.protocol.http.proxy.ProxyControl: Could
>> > not open/read key store C:\java\apache-jmeter-2.11\bin\proxyserver.jks (The
>> > system cannot find the file specified.)
>> > 2014/07/25 14:28:40 INFO  - jmeter.protocol.http.proxy.ProxyControl:
>> > Creating Proxy CA in C:\java\apache-jmeter-2.11\bin\proxyserver.jks
>> > 2014/07/25 14:28:44 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could
>> > not initialise key store java.io.IOException: Command failed, code: 1
>> > keytool error (likely untranslated):
>> > java.security.cert.CertificateException: Fail to parse input stream
>>
>> Unfortunately the actual command line is not displayed, so it's tricky
>> to reproduce.
>>
>> The command-line includes private data so it would need redacting anyway.
>>
>> However you might be able to write a wrapper script or exe that writes
>> its parameters to a file and then calls the real keytool.
>> The wrapper needs to be called keytool as well, but its directory can
>> be passed to JMeter using the command-line parameter:
>>
>> -Dkeytool.directory=/path/to/keytool
>>
>> >         at
>> > org.apache.jorphan.exec.KeyToolUtils.keytool(KeyToolUtils.java:376)
>> >         at
>> > org.apache.jorphan.exec.KeyToolUtils.generateProxyCA(KeyToolUtils.java:245)
>> >         at
>> > org.apache.jmeter.protocol.http.proxy.ProxyControl.initDynamicKeyStore(ProxyControl.java:1281)
>> >         at
>> > org.apache.jmeter.protocol.http.proxy.ProxyControl.initKeyStore(ProxyControl.java:1208)
>> >         at
>> > org.apache.jmeter.protocol.http.proxy.ProxyControl.startProxy(ProxyControl.java:434)
>> >         at
>> > org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.startProxy(ProxyControlGui.java:485)
>> >         at
>> > org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.actionPerformed(ProxyControlGui.java:370)
>> >         at
>> > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2029)
>> >         at
>> > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2352)
>> >         at
>> > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:413)
>> >         at
>> > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:270)
>> >         at
>> > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:263)
>> >         at java.awt.Component.processMouseEvent(Component.java:6520)
>> >         at javax.swing.JComponent.processMouseEvent(JComponent.java:3331)
>> >         at java.awt.Component.processEvent(Component.java:6285)
>> >         at java.awt.Container.processEvent(Container.java:2240)
>> >         at java.awt.Component.dispatchEventImpl(Component.java:4876)
>> >         at java.awt.Container.dispatchEventImpl(Container.java:2298)
>> >         at java.awt.Component.dispatchEvent(Component.java:4702)
>> >         at
>> > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4843)
>> >         at
>> > java.awt.LightweightDispatcher.processMouseEvent(Container.java:4503)
>> >         at 
>> > java.awt.LightweightDispatcher.dispatchEvent(Container.java:4433)
>> >         at java.awt.Container.dispatchEventImpl(Container.java:2284)
>> >         at java.awt.Window.dispatchEventImpl(Window.java:2730)
>> >         at java.awt.Component.dispatchEvent(Component.java:4702)
>> >         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
>> >         at java.awt.EventQueue.access$200(EventQueue.java:114)
>> >         at java.awt.EventQueue$3.run(EventQueue.java:705)
>> >         at java.awt.EventQueue$3.run(EventQueue.java:703)
>> >         at
>> > java.security.AccessController.doPrivileged(AccessController.java:300)
>> >         at
>> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>> >         at
>> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:98)
>> >         at java.awt.EventQueue$4.run(EventQueue.java:719)
>> >         at java.awt.EventQueue$4.run(EventQueue.java:717)
>> >         at
>> > java.security.AccessController.doPrivileged(AccessController.java:300)
>> >         at
>> > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>> >         at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
>> >         at
>> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:253)
>> >         at
>> > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:172)
>> >         at
>> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:161)
>> >         at
>> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>> >         at
>> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>> >         at java.awt.EventDispatchThread.run(EventDispatchThread.java:102)
>> >
>> > Anybody have ideas where to go next?
>> >
>> > Thanks,
>> > Doug
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to