You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Jung, Robert" <Ju...@media-saturn.com> on 2006/11/24 11:09:14 UTC

Include Controller

Hi,

I'm trying to use an include controller in my current test plan.
Getting the following exception in the log file:

2006/11/24 10:55:19 ERROR - jmeter.threads.JMeterThread: Test failed!
java.lang.ClassCastException: org.apache.jmeter.gui.tree.JMeterTreeNode
	at
org.apache.jmeter.threads.TestCompiler.saveSamplerConfigs(TestCompiler.java:
178)
	at
org.apache.jmeter.threads.TestCompiler.subtractNode(TestCompiler.java:127)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
	at
org.apache.jorphan.collections.HashTree.traverse(HashTree.java:956)
	at
org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:314)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:230)
	at java.lang.Thread.run(Unknown Source)

The test stops immediatley after start.

JMeter Version: 2.2
I saved a simple controller (using save as) to a jmx file.
The jmx file is positioned in the same directory as the including test plan.
I'm wondering if it is right, that the included jmx file starts with
"<jmeterTestPlan version="1.2" properties="1.8">"
I tried using a file with only having a GenericController element. Result ->
same exception.

Do you have any suggestions?

Thanks in adavance,

  Robert





Re: Include Controller

Posted by sebb <se...@gmail.com>.
On 24/11/06, Jung, Robert <Ju...@media-saturn.com> wrote:
> Hi,
>
> I'm trying to use an include controller in my current test plan.
> Getting the following exception in the log file:
>
> 2006/11/24 10:55:19 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.ClassCastException: org.apache.jmeter.gui.tree.JMeterTreeNode
>         at
> org.apache.jmeter.threads.TestCompiler.saveSamplerConfigs(TestCompiler.java:
> 178)
>         at
> org.apache.jmeter.threads.TestCompiler.subtractNode(TestCompiler.java:127)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973)
>         at
> org.apache.jorphan.collections.HashTree.traverse(HashTree.java:956)
>         at
> org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:314)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:230)
>         at java.lang.Thread.run(Unknown Source)
>
> The test stops immediatley after start.
>
> JMeter Version: 2.2
> I saved a simple controller (using save as) to a jmx file.
> The jmx file is positioned in the same directory as the including test plan.
> I'm wondering if it is right, that the included jmx file starts with
> "<jmeterTestPlan version="1.2" properties="1.8">"
> I tried using a file with only having a GenericController element. Result ->
> same exception.
>
> Do you have any suggestions?

See if the current nightly is any better.
IIRC there were some fixes to this area since the last release.

> Thanks in adavance,
>
>   Robert
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org