activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-242 don't throw j.l.ISE from producer
Date Mon, 12 Oct 2015 16:57:06 GMT
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 <jbertram@apache.org>
Authored: Mon Oct 12 11:20:04 2015 -0500
Committer: jbertram <jbertram@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 {


Mime
View raw message