jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxime Chassagneux <maxime.chassagn...@gmail.com>
Subject Re: HttpClient 4.5.2 release preparations
Date Thu, 25 Feb 2016 14:32:27 GMT
Hi,

Since I test JMeter with the latest snapshot of HC I experience issues with
HTTP Cookie Manager.
Now the defautl Implementation is HC4 with cookie Policy to default. When I
use it, most of scenario stop working with a problem of date :

2016/02/23 10:27:05 INFO  - jmeter.threads.JMeterThread: Thread finished:
P11 - Admin A/C SubTypes 10-1
2016/02/23 10:27:05 ERROR - jmeter.protocol.http.control.HC4CookieHandler:
Unable to add the cookie org.apache.http.cookie.MalformedCookieException:
Invalid 'expires' attribute: Thu, 27 Aug 2015 09:27:05 GMT
 at
org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:63)
 at
org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:112)
 at
org.apache.http.impl.cookie.DefaultCookieSpec.parse(DefaultCookieSpec.java:139)
 at
org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:115)
 at
org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:355)
 at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1371)
 at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:386)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1552)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1629)
 at
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:463)
 at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:394)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
 at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
 at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
 at java.lang.Thread.run(Unknown Source)

And some time, with other site I have this issue :

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
at
org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
at
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197)
at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:218)
at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:555)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:314)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)

When I change the Cookie Policy to "Standard" all is working back. ( But
each time a Clear GUI this option is lost ... and default is apply )

I have one other problem during a test who use https and http protocol :

org.apache.http.client.ClientProtocolException
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:886)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:555)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:314)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.http.HttpException: Unable to establish route:
planned = {}->https://xxxx.xxxxx.fr:443; current = {s}->
https://xxxx.xxxx.fr:443
at
org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:818)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:615)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)

No problem with JMeter 2.13.




2016-02-21 18:09 GMT+01:00 Oleg Kalnichevski <olegk@apache.org>:

> On Sat, 2016-02-20 at 01:14 +0100, Philippe Mouawad wrote:
> > Hello,
> > I tested 4.5.X branch, I reported an issue which Gary handled:
> >
> >    - https://issues.apache.org/jira/browse/HTTPCLIENT-1665
> >
> > The 3 bugs we are concerned about are fixed:
> >
> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58950
> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58881
> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58583
> >
> >
> > Maybe a bug in HttpClient should be created for
> > https://issues.apache.org/jira/browse/HTTPCORE-397 so that release notes
> > are complete:
> >
> >    - http://svn.apache.org/viewvc?view=revision&revision=1722952
> >
> >
> > Looking at this file:
> >
> >
> https://github.com/apache/httpclient/blob/04fb7e6d8e2aef7ae4465b26a931deffb9775450/RELEASE_NOTES.txt
> >
> >
> > It seems to me it is incomplete and should mention all those no ?:
> >
> >
> https://issues.apache.org/jira/browse/HTTPCLIENT-1665?jql=project%20%3D%20HTTPCLIENT%20AND%20fixVersion%20%3D%204.5.2%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC
> >
> >
> > Anyway thanks at your team for the work.
> >
> > Regards
> >
> > Philippe
> >
>
> The release vote is now ongoing. You are welcome to participate even if
> your vote is not going to be considered binding.
>
> http://markmail.org/message/qjg7ocb5pznyzbmv
>
> Oleg
>
>

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