https://issues.apache.org/bugzilla/show_bug.cgi?id=55334

            Bug ID: 55334
           Summary: Adding Include Controller to test plan (made of
                    Include Controllers) after first successful run causes
                    ClassCastException
           Product: JMeter
           Version: 2.9
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

In a Test Plan, add a Thread Group which has Include Controllers in it. Each
Include controller has a valid Test Fragment file path specified. The Test Plan
as a whole is Valid.
Run the Test Plan to completion. Now add another Include Controller to this
Test Plan using Add -> Logic Controller -> Include Controller.
Add a valid file path of a Test Fragment (This could be a duplicate of one of
the other Include Controllers already in the Test Plan)
Now run the Test Plan. The following exception is encountered in the logs. 

ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.ClassCastException:
org.apache.jmeter.gui.tree.JMeterTreeNode cannot be cast to
org.apache.jmeter.testelement.TestElement
    at org.apache.jmeter.threads.TestCompiler.addNode(TestCompiler.java:140)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1001)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:986)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:532)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252)
    at java.lang.Thread.run(Unknown Source)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to