jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Linda Lei <mm1019362...@gmail.com>
Subject Re: Connection timeout when use Oauth Request sampler to send request
Date Thu, 08 Dec 2016 09:46:18 GMT
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 <mm1019362617@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
>
>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message