That is bug#24704. Bug#25166 (same, but for timers) has the same cause.
The same thing happens with Simple Controllers if you've chosen "Add Separators Between Groups" or "Put Each Group in a New Controller", and with HTTP Header Managers if you're capturing HTTP headers.


The stack dump at the configure call that causes the harm is:

at org.apache.jmeter.protocol.http.config.gui.UrlConfigGui.configure(UrlConfigGui.java:174)
at org.apache.jmeter.protocol.http.config.gui.MultipartUrlConfigGui.configure(MultipartUrlConfigGui.java:122)
at org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui.configure(HttpTestSampleGui.java:91)
at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:169)
at org.apache.jmeter.protocol.http.proxy.ProxyControl.placeSampler(ProxyControl.java:606)
at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:274)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:175)


These three lines in JMeterTreeModel.addComponent are the cause of the problem:
JMeterGUIComponent guicomp = GuiPackage.getInstance().getGui(component);
guicomp.configure(component);
guicomp.modifyTestElement(component);


I've removed them and commited the change. Everything seems to be OK. (The behaviour of the GUIs when a new element is created has changed: they are no longer initialized with the values of the last edited element of the same type. Actually, I prefer this behaviour.)

However, I feel this is a high-risk change. We should monitor closely.

--
Salut,

Jordi.

Jordi Salvat i Alabart wrote:
There is a bugzilla entry for this. Yes, it's very annoying. The most annoying GUI feature as of now, IMO.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to