Dreampie / oauth

Automatically exported from code.google.com/p/oauth
0 stars 2 forks source link

JMeter OAuth Sampler relying on now removed JOrphanUtils method call #237

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update JMeter to latest version (reproduced on 2.6, 2.9)
2. Use the OAuth Sampler to send a request.

What is the expected output? What do you see instead?
Expect to see the results from the OAuth Request entered into Results Tree. 
Request is not entered into this tree due to the following error:

jmeter.threads.JMeterThread: Test failed! java.lang.NoSuchMethodError 
JOrphanUtils.closeQuietly(InputStream)

The request is sent and reaches the server, and the expected response is sent 
from the server (checked with wireshark)

What version of the product are you using? On what operating system?

JMeter 2.6 // JMeter 2.9
WinXP
Latest JMeter_oauth.jar from 'Downloads' section, latests JMeter OAuth sampler 
code from svn.

Please provide any additional information below.

fix:

closeQuietly() is called on line 307 of OAuthSampler.java only. Replacing this 
line with instream.close() and a try/catch allows the sampler to build properly 
with mvn package, and run properly within JMeter.

Original issue reported on code.google.com by diarmaid...@gmail.com on 11 Apr 2013 at 1:20

GoogleCodeExporter commented 9 years ago
Hi -
Is there a fix available?

Original comment by roberto....@gmail.com on 25 Sep 2013 at 8:42

GoogleCodeExporter commented 9 years ago
You can either rebuild this with the changes, or use a different JMeter 
sampler. There's a more maintained plugin at http://jmeter-plugins.org/

Original comment by diarmaid...@gmail.com on 25 Sep 2013 at 9:24