Author: sebb
Date: Mon Oct 3 10:43:01 2011
New Revision: 1178372
URL: http://svn.apache.org/viewvc?rev=1178372&view=rev
Log:
Be more precise about which method actually failed
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java?rev=1178372&r1=1178371&r2=1178372&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java
(original)
+++
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java
Mon Oct 3 10:43:01 2011
@@ -115,6 +115,7 @@ public class ClientJMeterEngine implemen
testTree.traverse(sampleListeners);
}
+ String methodName="unknown";
try {
JMeterContextService.startTest();
/*
@@ -125,27 +126,30 @@ public class ClientJMeterEngine implemen
File baseDirRelative =
FileServer.getFileServer().getBaseDirRelative();
synchronized(LOCK)
{
+ methodName="rconfigure()";
remote.rconfigure(testTree, host, baseDirRelative);
}
log.info("sent test to " + host + "
basedir='"+baseDirRelative+"'"); // $NON-NLS-1$
if (savep != null){
log.info("Sending properties "+savep);
try {
+ methodName="rsetProperties()";
remote.rsetProperties(savep);
} catch (RemoteException e) {
log.warn("Could not set properties: " + e.toString());
}
}
+ methodName="rrunTest()";
remote.rrunTest();
log.info("sent run command to "+ host);
} catch (IllegalStateException ex) {
- log.error("Error in run() method "+ex); // $NON-NLS-1$
+ log.error("Error in "+methodName+" method "+ex); // $NON-NLS-1$
$NON-NLS-2$
tidyRMI(log);
throw ex; // Don't wrap this error - display it as is
} catch (Exception ex) {
- log.error("Error in run() method "+ex); // $NON-NLS-1$
+ log.error("Error in "+methodName+" method "+ex); // $NON-NLS-1$
$NON-NLS-2$
tidyRMI(log);
- throw new JMeterEngineException("Error in run() method "+ex, ex);
// $NON-NLS-1$
+ throw new JMeterEngineException("Error in "+methodName+" method
"+ex, ex); // $NON-NLS-1$ $NON-NLS-2$
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]