Comment 9 for bug 459251

Revision history for this message
Craig (candrews-integralblue) wrote :

My apologies - by bug report does suck. I swear - I don't normally make such horrifically vague and uninformative bug reports!

When using the "HTTP Request Sampler," jmeter seems to work correctly.

When using the "HTTP Request HTTPClient Sampler," I get the attached output in jmeter.log. IMHO, the most interesting part of the log is this:

"ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
 at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
 at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:833)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
 at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
 at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
 ... 8 more"

"org.apache.commons.codec.DecoderException" can be found in Apache Commons Codec, which is Ubuntu's libcommons-codec-java, which I do have installed. In /usr/share/java/commons-codec-1.3.jar, org.apache.commons.codec.DecoderException is defined... so I don't know why jmeter is unable to find it.