<html>
<br>
This is probably a bug. I will post the reasons to the jmeter-dev
group, since it seems more appropriate there.<br>
<br>
Elias<br>
<br>
At 12:13 PM 4/10/2001, you wrote:<br>
<br>
<blockquote type=cite class=cite cite>I'm am new to JMeter, and I'm
running into problems trying to test a simple database. With the
following setup, I will always get a ClassCastException:<br>
<br>
- Test Plan<br>
<x-tab> </x-tab>-
Thread
Group<br>
<x-tab> </x-tab><x-tab> </x-tab>-
Database Testing<br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>-
SQL Query<br>
<br>
<br>
<br>
Here is the exeption:<br>
<br>
<font face="Courier, Courier"><x-tab> </x-tab>java.lang.ClassCastException:
org.apache.jmeter.config.LoginConfig<br>
<x-tab> </x-tab><x-tab> </x-tab>at
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:102)<br>
<x-tab> </x-tab><x-tab> </x-tab>at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:133)<br>
<x-tab> </x-tab><x-tab> </x-tab>at
java.lang.Thread.run(Thread.java:484)<br>
<br>
<br>
</font>Here is the line that does it (JDBCSampler.java:102):<br>
<br>
<font face="Courier, Courier"><x-tab> </x-tab>DBKey
key = getKey((DbConfig)e.getConfigElement(DbConfig.class),<br>
<x-tab> </x-tab><x-tab> </x-tab>(PoolConfig)e.getConfigElement(PoolConfig.class));<br>
<br>
</font>e.getConfigElement(DbConfig.class) returns a LoginConfig object,
not DbConfig object (which I think is just a sub-class). Is this a
bug, or am I not just setting it up properly?<br>
<br>
<br>
Thanks,<br>
Elias <br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org<br>
For additional commands, e-mail:
jmeter-user-help@jakarta.apache.org<font color="#0000FF"><u></font></u></blockquote></html>
|