You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Linda Lei <mm...@gmail.com> on 2016/12/07 09:50:05 UTC
Connection timeout when use Oauth Request sampler to send request
*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.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
Re: Connection timeout when use Oauth Request sampler to send request
Posted by Prakash Palnati <pr...@snapwiz.com>.
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 <mm...@gmail.com> 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 <mm...@gmail.com>:
>
>> *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
>>
>>
>
Re: Connection timeout when use Oauth Request sampler to send request
Posted by Linda Lei <mm...@gmail.com>.
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 <mm...@gmail.com>:
> *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.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
>
>