Repository: activemq-artemis
Updated Branches:
  refs/heads/master 1b49559c6 -> 5bfb7ac1a


ARTEMIS-242 don't throw j.l.ISE from producer


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/1baa5a0d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/1baa5a0d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/1baa5a0d

Branch: refs/heads/master
Commit: 1baa5a0d8b9baf9c039e967e022b3901ef584b53
Parents: 1b49559
Author: jbertram <jbert...@apache.org>
Authored: Mon Oct 12 11:20:04 2015 -0500
Committer: jbertram <jbert...@apache.org>
Committed: Mon Oct 12 11:25:49 2015 -0500

----------------------------------------------------------------------
 .../activemq/artemis/jms/client/ActiveMQMessageProducer.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1baa5a0d/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java
----------------------------------------------------------------------
diff --git 
a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java
 
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java
index e7a6912..7d58b54 100644
--- 
a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java
+++ 
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java
@@ -479,6 +479,12 @@ public class ActiveMQMessageProducer implements 
MessageProducer, QueueSender, To
       catch (ActiveMQException e) {
          throw JMSExceptionHelper.convertFromActiveMQException(e);
       }
+      catch (java.lang.IllegalStateException e) {
+         JMSException je = new IllegalStateException(e.getMessage());
+         je.setStackTrace(e.getStackTrace());
+         je.initCause(e);
+         throw je;
+      }
    }
 
    private void checkClosed() throws JMSException {

Reply via email to