Tag Archives: HTML

[Solved] JMeter Generate the report of html Error

Error generating the report: org. apache. jmeter. report. dashboard. GenerationException: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 0 is not equal to fixed size 5

The jdk I installed at first was jdk-17_linux-x64_bin.rpm which is jdk 17. When I generated the html report from the jtl file, I got the above error.

Later uninstalled the jdk. I reinstalled jdk1.8, jdk-8u202-linux-x64.rpm, and it generated it normally.

The uninstallation method of rpm is attached:

1. Check the version of JDK:

rpm -qa | grep jdk

2. Uninstall the JKD version installed by rpm

rpm -e –nodeps jdk1.8-1.8.0_202-fcs.x86_64

The conclusion is: it should be the compatibility problem of version 17 JDK. Try to change the JDK.

[Solved] DOM adds elements to HTML Error: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of typ…

question: failed to execute ‘appendChild’ on ‘node’: parameter 1 is not of type ‘node’

reason: the parameter of appendChild is node. This problem indicates that the current parameter is not node, it may be a string

For example:

DOM is a string

solution:

var dom=document.createElement('p');
dom.className='book';
dom.innerHTML='hello world';
document.body.appendChild(dom);

In this case, DOM is node

If the added element is a string, use document. Createtextnode() to create the node

var dom=document.createTextNode('hello world');