Bug 54331 - AjpSampler throws null pointer on GET request that are protected
AjpSampler throws null pointer on GET request that are protected
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.8
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-12-19 15:56 UTC by gareth carter
Modified: 2012-12-20 13:17 UTC (History)
1 user (show)



Attachments
JMeter Log File (18.29 KB, application/octet-stream)
2012-12-20 09:21 UTC, gareth carter
Details
Ajp JMeter Test (5.94 KB, application/octet-stream)
2012-12-20 09:23 UTC, gareth carter
Details
AjpSampler Stacktrace (769 bytes, text/plain)
2012-12-20 09:23 UTC, gareth carter
Details
Sample Test plan showing issue againt tomcat (4.77 KB, application/octet-stream)
2012-12-20 13:15 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gareth carter 2012-12-19 15:56:18 UTC
AjpSample throws null pointer when you set the method to GET. This is due to the body field being null and never being populated when GET is selected.
Comment 1 Philippe Mouawad 2012-12-19 22:27:06 UTC
Hello,
Can you attach a Test Plan showing the issue and the jmeter.log file ?

Thank you
Comment 2 gareth carter 2012-12-20 09:21:29 UTC
Created attachment 29781 [details]
JMeter Log File
Comment 3 gareth carter 2012-12-20 09:23:07 UTC
Created attachment 29782 [details]
Ajp JMeter Test

2 Tests, one to / and one to /cas-web/login. It only errors when accessing login page in cas. The other case works.
Comment 4 gareth carter 2012-12-20 09:23:55 UTC
Created attachment 29783 [details]
AjpSampler Stacktrace

This is the stacktrace when the AjpSample fails.
Comment 5 gareth carter 2012-12-20 09:29:12 UTC
To work the test case, you need to deploy cas to tomcat, I deployed cas to /cas-web so you'll need to change the test plan slightly if context name is different.
Comment 6 Philippe Mouawad 2012-12-20 13:15:33 UTC
Created attachment 29785 [details]
Sample Test plan showing issue againt tomcat
Comment 7 Philippe Mouawad 2012-12-20 13:17:50 UTC
Date: Thu Dec 20 13:16:32 2012
New Revision: 1424450

URL: http://svn.apache.org/viewvc?rev=1424450&view=rev
Log:
Bug 54331 - AjpSampler throws null pointer on GET request that are protected
Bugzilla Id: 54331

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/AjpSampler.java
    jmeter/trunk/xdocs/changes.xml