From 541bbc09328cdb49d5a7dfe5ef17dd55697e73ea Mon Sep 17 00:00:00 2001 From: Joshi Date: Thu, 16 Jun 2016 20:51:49 -0700 Subject: [PATCH] NIFI-1549: Fix JMSConsumer exception This closes #539 --- .../java/org/apache/nifi/processors/standard/JmsConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JmsConsumer.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JmsConsumer.java index 0031c6a064..cf968a6fab 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JmsConsumer.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JmsConsumer.java @@ -197,7 +197,7 @@ public abstract class JmsConsumer extends AbstractProcessor { final byte[] messageBody = JmsFactory.createByteArray(message); out.write(messageBody); } catch (final JMSException e) { - throw new ProcessException("Failed to receive JMS Message due to {}", e); + throw new ProcessException("Failed to receive JMS Message due to " + e.getMessage(), e); } } });