Created attachment 36133 [details] Use the inner exception of a StreamException to display some error text at least When a user tries to open an invalid jmx file (for example a jmeter.log file), the shown error dialog contains no text. This happens as the getMessage method of the caught exception gets displayed, but the StreamException has no descriptive message. The attached patch will use the inner exception for the error message as that is (in my tests) not empty and rather descriptive. In addition to this change I think the error dialog should be changed to show a general error message (instead of simply displaying "Error") together with the name of the file that was tried to be opened.
LGTM. Thanks
Date: Thu Sep 6 17:07:59 2018 New Revision: 1840238 URL: http://svn.apache.org/viewvc?rev=1840238&view=rev Log: Use the wrapped exception for error message on file load for StreamException When a user opens a test plan that is no xml at all, a StreamException gets thrown. This exception can have an empty message. That will lead to an error dialog that has no text at all. In that case we try to work around this by using the wrapped exception as the source for the error message. Bugzilla Id: 62683 Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/Load.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4856