Bug 51937 - JMeter does not handle missing TestPlan entry well
JMeter does not handle missing TestPlan entry well
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
unspecified
PC Windows XP
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
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