Connection timeout when use Oauth Request sampler to send request

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Connection timeout when use Oauth Request sampler to send request

Linda Lei
1. Apache Jmeter Version: 
    3.1

2. Oauth Plugin:
Use ApacheJMeter_oauth-v2_1.jar downloaded from https://code.google.com/archive/p/jmeter-oauth/issues/3, however, it alerts connection timeout error, as belows:
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at org.apache.jmeter.util.HttpSSLProtocolSocketFactory.createSocket(HttpSSLProtocolSocketFactory.java:151)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample(OAuthSampler.java:228)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)







Note that ApacheJMeter_oauth-v2.jar alerts NoMethodFound error as belows:
 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoSuchMethodError: org.apache.jorphan.util.JOrphanUtils.closeQuietly(Ljava/io/InputStream;)V
at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample(OAuthSampler.java:307)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)


Is there any suggestion about this oauth jar issue?

Regards:
Linda

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connection timeout when use Oauth Request sampler to send request

glinius@live.com
This post has NOT been accepted by the mailing list yet.
Sounds like you're suffering from https://github.com/termie/oauth/issues/237 issue.


The recommended way of installing JMeter Plugins and keeping them up to date is using JMeter Plugins Manager

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connection timeout when use Oauth Request sampler to send request

Linda Lei
In reply to this post by Linda Lei
Resolved by using Jmeter 2.7 version and note that don't use HTTP Cookie Manager

2016-12-07 17:50 GMT+08:00 Linda Lei <[hidden email]>:
1. Apache Jmeter Version: 
    3.1

2. Oauth Plugin:
Use ApacheJMeter_oauth-v2_1.jar downloaded from https://code.google.com/archive/p/jmeter-oauth/issues/3, however, it alerts connection timeout error, as belows:
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at org.apache.jmeter.util.HttpSSLProtocolSocketFactory.createSocket(HttpSSLProtocolSocketFactory.java:151)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample(OAuthSampler.java:228)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)







Note that ApacheJMeter_oauth-v2.jar alerts NoMethodFound error as belows:
 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoSuchMethodError: org.apache.jorphan.util.JOrphanUtils.closeQuietly(Ljava/io/InputStream;)V
at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample(OAuthSampler.java:307)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)


Is there any suggestion about this oauth jar issue?

Regards:
Linda


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Connection timeout when use Oauth Request sampler to send request

Prakash Palnati
Hi Linda Lei,

Did u use OAUTH Sampler for google sign-in or something like that? Could
you please explain on how to do it? I have been trying to do google sign-in
from our app but no luck till now.


*Regards,*

*Prakash*

On Thu, Dec 8, 2016 at 3:16 PM, Linda Lei <[hidden email]> wrote:

> Resolved by using Jmeter 2.7 version and note that don't use HTTP Cookie
> Manager
>
> 2016-12-07 17:50 GMT+08:00 Linda Lei <[hidden email]>:
>
>> *1. Apache Jmeter Version: *
>>     3.1
>>
>> *2. Oauth Plugin:*
>> *Use ApacheJMeter_oauth-v2_1.jar* downloaded from *https://code.google.com/archive/p/jmeter-oauth/issues/3
>> <https://code.google.com/archive/p/jmeter-oauth/issues/3>*, however, it
>> alerts *connection timeout* error, as belows:
>> java.net.ConnectException: Connection timed out: connect
>> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.SocksSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
>> at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
>> at org.apache.jmeter.util.HttpSSLProtocolSocketFactory.createSo
>> cket(HttpSSLProtocolSocketFactory.java:151)
>> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
>> tion.java:707)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeWith
>> Retry(HttpMethodDirector.java:387)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
>> od(HttpMethodDirector.java:171)
>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>> lient.java:397)
>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>> lient.java:323)
>> at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample
>> (OAuthSampler.java:228)
>> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
>> le(HTTPSamplerBase.java:1166)
>> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
>> le(HTTPSamplerBase.java:1155)
>> at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(
>> JMeterThread.java:475)
>> at org.apache.jmeter.threads.JMeterThread.processSampler(JMeter
>> Thread.java:418)
>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
>> at java.lang.Thread.run(Unknown Source)
>>
>> ​
>> ​
>>
>>
>> ​
>>
>> Note that *ApacheJMeter_oauth-v2.jar* alerts *NoMethodFound* error as
>> belows:
>>  ERROR - jmeter.threads.JMeterThread: Test failed!
>> java.lang.NoSuchMethodError: org.apache.jorphan.util.JOrpha
>> nUtils.closeQuietly(Ljava/io/InputStream;)V
>> at org.apache.jmeter.protocol.oauth.sampler.OAuthSampler.sample
>> (OAuthSampler.java:307)
>> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
>> le(HTTPSamplerBase.java:1166)
>> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
>> le(HTTPSamplerBase.java:1155)
>> at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(
>> JMeterThread.java:475)
>> at org.apache.jmeter.threads.JMeterThread.processSampler(JMeter
>> Thread.java:418)
>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
>> at java.lang.Thread.run(Unknown Source)
>>
>>
>> Is there any suggestion about this oauth jar issue?
>>
>> Regards:
>> Linda
>>
>>
>
Loading...