Bug 54166

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

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

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.

Please:
- 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]
log
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:

http://jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file

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]
Response
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
Log:
ViewResultsTree could not render the HTML response: handle failure to parse HTML
Bugzilla Id: 54166

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RenderAsHTML.java
    jmeter/trunk/xdocs/changes.xml
Comment 7 The ASF infrastructure team 2022-09-24 20:37:52 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2987