Validation of an uploaded JMX file fails with xmlParseEntityRef
search cancel

Validation of an uploaded JMX file fails with xmlParseEntityRef

book

Article ID: 191205

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

When uploading a JMX file (or any other XML file) to a Blazemeter test, the validation phase may fail with xmlParseEntityRef:

Environment

Blazemeter SaaS

Cause

The XML is not properly formatted. If you try to open the JMX with JMeter, it fails with an error such as:

Resolution

Inspect the XML file with a regular editor such as Notepad++ or Sublime Text.
The line number in the JMeter error message marks the line in the JMX where the problem is to be found.

A common error is the use of an ampersand (&) within the name of a JMeter component. The ampersand has special meaning in XML as described in https://www.techrepublic.com/article/beware-of-the-ampersand-when-using-xml/ and needs to be avoided or escaped


Attachments