My script is working absolutely fine on 2.13 but doesn't work on 3.1 Its not doing the re-directs correctly during authorization and subsequent requests are failing with 401 errors. Let me know the debug information you need to help fix this issue.
Created attachment 34712 [details] results and other debug information
Could you show the errors in more details ? Show every tab of the red query. Are the URLs of your test plan accessible from anybody on Internet ? Logs show nothing useful, maybe you can add to user.properties: log_level.org.apache.http=DEBUG Run your plan again for both versions and provide jmeter.log for each ? Thanks
Created attachment 34713 [details] with DEBUG enabled Unfortunately those servers are not accessible on the public internet. I can show the scenario on a screen share session or i can take a video of my screen with all the tabs and post it later, if required. I have attached logs with DEBUG turned on. Please have a look and see if there is anything else i could add to make this debugging faster. Thank you !
Hello I think your bug is a duplicate of Bug 60575. I see an additional header for redirected gzt is sent ("Content-Length: 134"). Could you try nightly build ?: http://jmeter.apache.org/nightly.html If issue persists ,please reopen . Otherwise give us your feedback on this one. Thank you *** This bug has been marked as a duplicate of bug 60575 ***
I have tried it again with nightly build, but the request is still failing. I still see the "Content-Length: 134" in the redirected request.
Created attachment 34718 [details] Don't use a body on a GET request, that is send on redirect Could you test the patch and see, if it helps?
Could you please explain how to apply the patch please. I have looked for HTTPHC4Impl.java file but couldn't find it.
(In reply to Amar from comment #7) > Could you please explain how to apply the patch please. I have looked for > HTTPHC4Impl.java file but couldn't find it. A new version is available in nightly build: https://builds.apache.org/job/JMeter-trunk/5804/ Can you test it and give your feedback ? Thanks
There is definitely a change in behaviour in this new nightly build but its didn't seem to fix the full problem yet. It somehow not doing the further redirect(3rd redirect) successfully like in 2.13 version. Please check the attachment and suggest next steps.
Created attachment 34721 [details] last redirect missing compared to 2.13 version
(In reply to Amar from comment #10) > Created attachment 34721 [details] > last redirect missing compared to 2.13 version Hello, Please put both JMeter in debug as explained earlier (log_level.org.apache.http=DEBUG) and provide the log files for both runs 2.13 and 3.2-nightly Screenshot are incomplete and hard to use. Thank you
Created attachment 34722 [details] log file from 2.13 version I don't see jmeter.log in the nightly version. Most likely another bug or something but i am attaching log file from 2.13 version now
(In reply to Amar from comment #12) > Created attachment 34722 [details] > log file from 2.13 version > > I don't see jmeter.log in the nightly version. Most likely another bug or > something but i am attaching log file from 2.13 version now It's not a bug, logging management has changed yesterday (JMeter migrated to log4j2 and slf4j). Can you edit log4j2.xml and uncomment: <!-- <Logger name="org.apache.http" level="debug" /> --> Regards
Created attachment 34723 [details] still log not getting generated. Please check if i enabled the logging right.
(In reply to Amar from comment #14) > Created attachment 34723 [details] > still log not getting generated. > > Please check if i enabled the logging right. Remove the line with error level please
Created attachment 34724 [details] I removed that line but still no log file getting created
Comment on attachment 34724 [details] I removed that line but still no log file getting created I don't understand , I've just tested now and it works for me How do you start JMeter ?
I double click ApacheJMeter.jar file to start jMeter
(In reply to Amar from comment #18) > I double click ApacheJMeter.jar file to start jMeter It's not the correct way to run it. Run either jmeter.sh if you're on Linux or jmeter.bat if you're on windows
It shows me this when i started it with jmeter.sh . Something related to loading class MacBook-Pro-2:bin Amar$ ./jmeter.sh SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. ================================================================================ Don't use GUI mode for load testing, only for Test creation and Test debugging ! For load testing, use NON GUI Mode: jmeter -n -t [jmx file] -l [results file] -e -o [Path to output folder]) & adapt Java Heap to your test requirements: Modify HEAP="-Xms512m -Xmx512m" in the JMeter batch file ==========================================
(In reply to Amar from comment #20) > It shows me this when i started it with jmeter.sh . Something related to > loading class > > > MacBook-Pro-2:bin Amar$ ./jmeter.sh > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > SLF4J: Defaulting to no-operation (NOP) logger implementation > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further > details. > ============================================================================= > === > Don't use GUI mode for load testing, only for Test creation and Test > debugging ! > For load testing, use NON GUI Mode: > jmeter -n -t [jmx file] -l [results file] -e -o [Path to output folder]) > & adapt Java Heap to your test requirements: > Modify HEAP="-Xms512m -Xmx512m" in the JMeter batch file > ========================================== There a packaging issue in nightly build. Following jars are missing: log4j-1.2-api-2.7.jar log4j-core-2.7.jar log4j-slf4j-impl-2.7.jar Can you download them and add them to lib folder: https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-1.2-api/2.7/ https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.7/ https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.7/ Team will fix issue for next nightly. Thanks
Hello, Issue with logs is now fixed in nightly available on jenkins if you want to test. Regards
Created attachment 34725 [details] log from nightly build I am able to get the log now on the nightly build. I see some errors saying something about unable to add the cookie 2017-02-06 21:13:15,469 ERROR o.a.j.p.h.c.HC4CookieHandler: Unable to add the cookie org.apache.http.cookie.MalformedCookieException: Invalid 'expires' attribute: Tue, 07 Feb 2017 09:13:14 GMT at org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:64) ~[httpclient-4.5.3.jar:4.5.3] at org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:113) ~[httpclient-4.5.3.jar:4.5.3] at org.apache.http.impl.cookie.DefaultCookieSpec.parse(DefaultCookieSpec.java:140) ~[httpclient-4.5.3.jar:4.5.3] at org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:125) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:375) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1526) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:486) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1526) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1620) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:519) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:494) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1176) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1165) [ApacheJMeter_http.jar:r1781918] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:473) [ApacheJMeter_core.jar:r1781918] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416) [ApacheJMeter_core.jar:r1781918] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252) [ApacheJMeter_core.jar:r1781918] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Thanks. Could you show your CookieManager configuration please ? Thanks
Created attachment 34726 [details] My cookie manager
Comment on attachment 34726 [details] My cookie manager Can you switch it to Standard as per this: - http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager Cookie Policy The cookie policy that will be used to manage the cookies. "standard" is the default since 3.0, and should work in most cases.
Created attachment 34727 [details] its working now Thats perfect... Its working now ! Shall i keep working on the nightly build or shall i take the official build tomorrow ? I am not quite familiar with the process. Please suggest. Thank you !
Could you also give me a high level view of what was the root cause of this problem and what was fixed to get it working ? Its for my own understanding of jMeter issues
(In reply to Amar from comment #27) > Created attachment 34727 [details] > its working now > > Thats perfect... Its working now ! > > Shall i keep working on the nightly build or shall i take the official build > tomorrow ? I am not quite familiar with the process. Please suggest. Thank > you ! Nightly build is usually not an official release and may be broken as you have seen. We are currently working on full migration to slf4j + log4j2 and then we may release a version if a consensus on this is reached. If you're willing to work on nightly and can report any bug you face it will help us a lot and ensure 3.2 does not contain those bugs, but otherwise wait for next version. Regards
(In reply to Amar from comment #28) > Could you also give me a high level view of what was the root cause of this > problem and what was fixed to get it working ? Its for my own understanding > of jMeter issues Issue was introduced by enhancement (Bug 60358) of 3.1 version.
When is the release date for 3.2 ?
Date: Mon Feb 6 15:46:29 2017 New Revision: 1781918 URL: http://svn.apache.org/viewvc?rev=1781918&view=rev Log: Bug 60575 - HTTP request: Even if there are no Parameters, a Body is sent for GET method Handle redirect , patch by Felix Schumacher for testing (may be rollbacked) Bugzilla Id: 60575 Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java Revision: 1781918 Modified property: svn:log Modified: svn:log at Tue Feb 7 21:05:43 2017 ------------------------------------------------------------------------------ --- svn:log (original) +++ svn:log Tue Feb 7 21:05:43 2017 @@ -1,3 +1,3 @@ -Bug 60575 - HTTP request: Even if there are no Parameters, a Body is sent for GET method +Bug 60682 - HTTP Request : Get method may fail on redirect due to Content-Length header being set Handle redirect , patch by Felix Schumacher for testing (may be rollbacked) -Bugzilla Id: 60575 +Bugzilla Id: 60682
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4261