Author: sebb
Date: Mon Sep 22 17:32:31 2008
New Revision: 698045

URL: http://svn.apache.org/viewvc?rev=698045&view=rev
Log:
Set stopthread directly in thread rather than via the sample result

Modified:
    
jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
    
jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java

Modified: 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java?rev=698045&r1=698044&r2=698045&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
 (original)
+++ 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
 Mon Sep 22 17:32:31 2008
@@ -142,7 +142,7 @@
             log.error("BeanShell Jar missing? " + ex.toString());
             result.setError(true);
             result.setFailureMessage("BeanShell Jar missing? " + 
ex.toString());
-            response.setStopThread(true); // No point continuing
+            
JMeterContextService.getContext().getThread().setOnErrorStopThread(true); // No 
point continuing
         } catch (Exception ex) // Mainly for bsh.EvalError
         {
             result.setError(true);

Modified: 
jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java?rev=698045&r1=698044&r2=698045&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
 Mon Sep 22 17:32:31 2008
@@ -156,7 +156,7 @@
             log.error("BeanShell Jar missing? " + ex.toString());
             res.setResponseCode("501");//$NON-NLS-1$
             res.setResponseMessage(ex.toString());
-            res.setStopThread(true); // No point continuing
+            
JMeterContextService.getContext().getThread().setOnErrorStopThread(true); // No 
point continuing
         } catch (Exception ex) // Mainly for bsh.EvalError
         {
             log.warn(ex.toString());



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to