Knowledge Base Article

Home Page > Knowledge Base > Spira Platform > RemoteLaunch

Article Data at the root level is invalid error when running JMeter tests

by Jim R. on Thursday, December 12, 2013

When running a JMeter test script through RemoteLaunch, you may get the following error:

Exception:
Data at the root level is invalid. Line 1, position 1.

Stack Trace:
 at Inflectra.RemoteLaunch.Engines.JMeter2AutomationEngine.JMeterAutomationEngine.StartExecution
(AutomatedTestRun automatedTestRun)
 at Inflectra.RemoteLaunch.Business.RunTestThread.Execute()


If you get this error message it usually means that Apache JMeter is not configured to output its results as XML, but instead is outputting them as CSV.

The default items to be saved can be defined in the jmeter.properties (or user.properties) file. The properties are used as the initial settings for the Listener Config pop-up, and are also used for the log file specified by the -l command-line flag (commonly used for non-GUI test runs).

To change the default format, find the following line in jmeter.properties:

jmeter.save.saveservice.output_format=csv

and change it to:

jmeter.save.saveservice.output_format=xml

For more details on configuring JMeter's output formats, please refer to: http://jmeter.apache.org/usermanual/listeners.html
Attachments
Article Info
Last Updated: 12/12/2013
Article ID: KB67
# Views: 1400
Tags
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.