Bug 51937 - JMeter does not handle missing TestPlan entry well
Summary: JMeter does not handle missing TestPlan entry well
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 10:26 UTC by Sebb
Modified: 2011-10-03 12:26 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2011-10-03 10:26:05 UTC
If the TestPlan is missing from a JMX file (e.g. is a fragment such as a Workbench only), this is detected by the run method of StandardJMeterEngine.

This works OK for ordinary non-GUI mode - though the code should not call System.exit().

However, in the case of non-GUI client-server mode, the error causes the server to exit, and the client just hangs.

The JMX file should be checked earlier (to prevent useless engine startup), and the code should not call System.exit() if at all possible.
Comment 1 Sebb 2011-10-03 12:26:23 UTC
URL: http://svn.apache.org/viewvc?rev=1178380&view=rev
Log:
Bug 51937 - JMeter does not handle missing TestPlan entry well

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:47 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2574