Bug 62916

Summary: HTTP Test Script Recorder fails with UnsupportedOperationException if recording is started after a distributed test has been run
Product: JMeter Reporter: steve <stevecrew>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Severity: normal CC: p.mouawad, stevecrew
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.1   
Hardware: All   
OS: All   
Attachments: jmeter trace log

Description steve 2018-11-16 10:52:37 UTC
Created attachment 36263 [details]
jmeter trace log

Issue is occurs randomly and is not easy to reproduce. When accessing a website the recording throws the following error:

java.lang.UnsupportedOperationException: null
	at org.apache.jmeter.threads.UnmodifiableJMeterVariables.putObject(UnmodifiableJMeterVariables.java:78) ~[ApacheJMeter_core.jar:4.0 r1823414]
	at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.extractClientContextAfterSample(HTTPHC4Impl.java:577) ~[ApacheJMeter_http.jar:4.0 r1823414]
	at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:459) [ApacheJMeter_http.jar:4.0 r1823414]
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) [ApacheJMeter_http.jar:4.0 r1823414]
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189) [ApacheJMeter_http.jar:4.0 r1823414]
	at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:235) [ApacheJMeter_http.jar:4.0 r1823414]

The jmeter environment is a master with 2 slaves. All proceeses were restarted, jmeter proxy certificate recreated and proxyserver.jks

Java version = java version "1.8.0_181"

Debug log attached.
Comment 1 steve 2018-11-16 10:53:56 UTC
Issue also happens when using jmeter-5.0
Comment 3 Philippe Mouawad 2018-12-03 22:03:04 UTC
Author: pmouawad
Date: Mon Dec  3 22:00:30 2018
New Revision: 1848110

URL: http://svn.apache.org/viewvc?rev=1848110&view=rev
Bug 62916 - JMeter HTTP Test Script Recorder randomly stops recording

Rename bug
Bugzilla Id: 62916

    Author: pmouawad
Date: Mon Dec  3 21:59:06 2018
New Revision: 1848107

URL: http://svn.apache.org/viewvc?rev=1848107&view=rev
Bug 62916 - JMeter HTTP Test Script Recorder randomly stops recording
Bugzilla Id: 62916

Comment 4 Philippe Mouawad 2018-12-03 22:08:36 UTC
Thanks for reporting issue.
Can you test nightly build tomorrow once it is generated.