Bug 62916 - HTTP Test Script Recorder fails with UnsupportedOperationException if recording is started after a distributed test has been run
Summary: HTTP Test Script Recorder fails with UnsupportedOperationException if recordi...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 4.0
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-11-16 10:52 UTC by steve
Modified: 2018-12-03 22:08 UTC (History)
2 users (show)



Attachments
jmeter trace log (102.84 KB, text/x-log)
2018-11-16 10:52 UTC, steve
Details

Note You need to log in before you can comment on or make changes to this bug.
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
Log:
Bug 62916 - JMeter HTTP Test Script Recorder randomly stops recording

Rename bug
Bugzilla Id: 62916

Modified:
    jmeter/trunk/xdocs/changes.xml
    
    Author: pmouawad
Date: Mon Dec  3 21:59:06 2018
New Revision: 1848107

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

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java
    jmeter/trunk/xdocs/changes.xml
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.