Bug 59400

Summary: ClientJMeterEngine remote exit reports IOException
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Stop backing engine asynchronously

Description Sebb 2016-04-30 21:42:14 UTC
The -X command option results in the following warning in the log:

2016/04/30 22:16:18 WARN  - jmeter.engine.ClientJMeterEngine: Could not perform remote exit: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.EOFException

This is because RemoteJMeterEngineImpl.rexit() processes the exit request synchronously. The rexit() RMI call never returns because the server exits first.

The rexit() method should return having scheduled the exit code in a separate thread.
Comment 1 Sebb 2016-04-30 21:55:03 UTC
Created attachment 33816 [details]
Stop backing engine asynchronously
Comment 2 Philippe Mouawad 2016-06-11 08:27:07 UTC
+1 for commiting the patch
Comment 3 Felix Schumacher 2016-06-12 13:19:12 UTC
Date: Sun Jun 12 13:18:41 2016
New Revision: 1747998

URL: http://svn.apache.org/viewvc?rev=1747998&view=rev
Log:
Get rid of UnmarshalException on stopping when -X option is used.

Bugzilla Id: 59400

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java
    jmeter/trunk/xdocs/changes.xml