steeltomato/jmeter-amf — Issue #14: SSL Error when recording with AMF Proxy Server
Author: bearlmax
Created: 2011-10-19 19:25:36+00:00
State: open

Issue:
When I start recording with the AMF Proxy Server, I receive "connection reset by peer" error when trying to login to my application.

Steps to reproduce:
1. Install JMeter 2.5.1r1177103. Copy JMeter-AMF and BlazeDS jars to /lib/ext
2. Created a new test plan in JMeter and configure it as descibed in the user guide
3. Update the proxy settings in the browser to match the AMF Proxy server
3. In the AMF Proxy Server, hit start
4. Browse to my application under test

Expected result:
I should be able to login to my app and requests should be captured by the AMF Proxy server

Actual result:
I receive a connection error and am unable to login to my app.

Additional Info:
This connection error only occurs when recording with the AMF proxy server. If I use the HTTP Proxy server, I can login to my app just fine and capture all of the requests with no issues (without deserialization of the AMF binary). This issue occurs in both IE and Firefox(using foxyproxy). After starting the AMF Proxy server and updating the browser proxy settings, I notice that I receive SSL certificate warnings when I navigate to my application. I only see these certificate warnings when I am recording with the AMF Proxy server. I imported the cert into IE's Trusted Root but the issue still occured.

JMeter Log file Snippet when using Firefox:
jmeter.util.SSLManager: Keystore file not found, loading empty keystore
2011/10/19 15:01:34 INFO - jmeter.protocol.http.sampler.HTTPJavaImpl: Error Response Code: 404
2011/10/19 15:01:34 INFO - jmeter.protocol.amf.proxy.FormCharSetFinder: Using htmlparser version: 2.0 (Release Build Sep 17, 2006)

JMeter Log file Snippet when using IE:
2011/10/19 14:37:02 ERROR - jmeter.protocol.amf.proxy.AmfProxy: Problem with SSL certificate? Ensure browser is set to accept the JMeter proxy cert: Connection reset by peer: socket write error
2011/10/19 14:37:04 ERROR - jmeter.JMeter: Uncaught exception: java.lang.NoSuchFieldError: createASObjectForMissingType
at org.apache.jmeter.protocol.amf.util.AmfXmlConverter.convertAmfMessageToXml(AmfXmlConverter.java:151)
at org.apache.jmeter.protocol.amf.proxy.AmfRequestHdr.populateSampler(AmfRequestHdr.java:463)
at org.apache.jmeter.protocol.amf.proxy.AmfRequestHdr.getSampler(AmfRequestHdr.java:281)
at org.apache.jmeter.protocol.amf.proxy.AmfProxy.run(AmfProxy.java:229)