Bug 54166 - ViewResultsTree could not render the HTML response
ViewResultsTree could not render the HTML response
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.8
PC All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-11-19 11:00 UTC by murali
Modified: 2012-11-20 01:26 UTC (History)
2 users (show)



Attachments
Log (4.02 KB, text/plain)
2012-11-19 11:00 UTC, murali
Details
log (36.32 KB, text/plain)
2012-11-19 11:30 UTC, murali
Details
Response (13.44 KB, application/x-zip-compressed)
2012-11-19 14:08 UTC, murali
Details

Note You need to log in before you can comment on or make changes to this bug.
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