You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2004/04/06 16:23:54 UTC

DO NOT REPLY [Bug 28230] New: - HTTP request with no content-type raises NullPointerException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28230>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28230

HTTP request with no content-type raises NullPointerException

           Summary: HTTP request with no content-type raises
                    NullPointerException
           Product: JMeter
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: richard.stedham@amsjv.com


Found in JMeter 2.0
Using the HTTP Sampler with the 'Retrieve all embedded resources from HTML 
Files' ticked. When a resource that does not have a content type defined on the 
web sever is accessed a null pointer exception occurs on line 563 of 
HTTPSampler.
Tracked this down to res.getDataType() being called, which uses a private 
string dataType in SampleResult that is not initialised. I have fixed this on 
my build by setting it to "" on initialisation and this works.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org