Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Oct 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 11 Apr 2013 at 1:20

@GoogleCodeExporter
Copy link
Author

Hi -
Is there a fix available?

Original comment by [email protected] on 25 Sep 2013 at 8:42

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 25 Sep 2013 at 9:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant