You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/05/02 15:53:41 UTC

svn commit: r940224 - /jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java

Author: sebb
Date: Sun May  2 13:53:40 2010
New Revision: 940224

URL: http://svn.apache.org/viewvc?rev=940224&view=rev
Log:
Better error reporting of invalid test plan

Modified:
    jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java

Modified: jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java?rev=940224&r1=940223&r2=940224&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java (original)
+++ jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java Sun May  2 13:53:40 2010
@@ -67,8 +67,7 @@ public class FixedQueueExecutor implemen
     public Message sendAndReceive(Message request) throws JMSException {
         String id = request.getJMSCorrelationID();
         if(id == null && !useReqMsgIdAsCorrelId){
-            log.error("Correlation id is null. Set the JMSCorrelationID header");
-            return null;
+            throw new IllegalArgumentException("Correlation id is null. Set the JMSCorrelationID header.");
         }
 
         final MessageAdmin admin = MessageAdmin.getAdmin();