Bug 54166

Summary: ViewResultsTree could not render the HTML response
Product: JMeter Reporter: murali <muralidharann>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Severity: normal CC: muralidharann, p.mouawad
Priority: P2    
Version: 2.8   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Log

Description murali 2012-11-19 11:00:56 UTC
Created attachment 29605 [details]

Unable to render HTML Response in ViewResultsTree

Please find the attached Jmeter log file for your reference.
Comment 1 Philippe Mouawad 2012-11-19 11:17:32 UTC
Attached file is not log file.

- Add screenshots of issue (what is being rendered)
- log files
- simplified test plan showing issue
Comment 2 murali 2012-11-19 11:30:24 UTC
Created attachment 29606 [details]
Comment 3 Sebb 2012-11-19 11:47:30 UTC
It would also be helpful to have a copy of the page that won't render.

You can use the Save Responses to a file Listener:


Add it as a child of the sampler that fetches the problem page
Comment 4 murali 2012-11-19 14:08:18 UTC
Created attachment 29608 [details]
Comment 5 Sebb 2012-11-19 15:26:27 UTC
The immediate cause is the following css entry:

    <style type="text/css">
        html, body
            margin: 0;
            padding: 0 0 <length> 0;
            height: 100%;

The <length> tag should not be there. I suggest you report the fault to the webmaster.

However, it would be better if JMeter caught the RuntimeException and displayed some kind of indication to the user.

Note that only the HTML viewers have problems; it's possible to display the content using text or XML or even JSON.
Comment 6 Sebb 2012-11-20 01:26:08 UTC
Added code to catch the RuntimeException and report it to the user.

URL: http://svn.apache.org/viewvc?rev=1411496&view=rev
ViewResultsTree could not render the HTML response: handle failure to parse HTML
Bugzilla Id: 54166