Bug 60756

Summary: Module Controller included in a Thread Group with the same name as linked Test Fragment looses link after reopening saved test plan
Product: JMeter Reporter: juergen.plasser
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Bug Depends on: 55375    
Bug Blocks:    
Attachments: Proof of concept

Description juergen.plasser 2017-02-21 11:43:32 UTC
Created attachment 34773 [details]
Proof of concept

I have test plan including a simple test fragment and multiple thread groups (two in my case), both including a module controller linked to the aforementioned test fragment.

It happens that when a thread group is simply named like the linked test fragment (in my attached jmx they are named "Test Fragment") the link is lost in the UI client after reopening the test plan. 

Running the test leads to a SOE:

2017/02/21 12:38:55 ERROR - jmeter.JMeter: Uncaught exception:  java.lang.StackOverflowError
	at java.util.HashMap.hash(HashMap.java:338)
	at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
	at java.util.Collections$SynchronizedMap.get(Collections.java:2584)
	at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:184)
	at org.apache.jmeter.testelement.AbstractTestElement.isEnabled(AbstractTestElement.java:627)
	at org.apache.jmeter.gui.tree.JMeterTreeNode.isEnabled(JMeterTreeNode.java:66)
	at org.apache.jmeter.JMeter.convertSubTree(JMeter.java:1002)
	at org.apache.jmeter.JMeter.convertSubTree(JMeter.java:1020)
	at org.apache.jmeter.JMeter.convertSubTree(JMeter.java:1014)
	at org.apache.jmeter.JMeter.convertSubTree(JMeter.java:1020)
	at org.apache.jmeter.JMeter.convertSubTree(JMeter.java:1014)...