[
https://issues.apache.org/jira/browse/NIFI-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335350#comment-15335350
]
ASF GitHub Bot commented on NIFI-1549:
--------------------------------------
GitHub user rekhajoshm opened a pull request:
https://github.com/apache/nifi/pull/539
NIFI-1549: Fix JMSConsumer exception
NIFI-1549: Fix JMSConsumer exception
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rekhajoshm/nifi NIFI-1549
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/539.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #539
----
commit 4a418127c8c1154255c737a7991ca11734a1eafd
Author: Joshi <[email protected]>
Date: 2016-06-17T03:51:49Z
NIFI-1549: Fix JMSConsumer exception
----
> Bug in JMSConsumer makes it hard to debug failure in processing JMS messages.
> -----------------------------------------------------------------------------
>
> Key: NIFI-1549
> URL: https://issues.apache.org/jira/browse/NIFI-1549
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.5.0
> Reporter: Christopher McDermott
> Priority: Trivial
>
> Minor bug in JMSConsumer makes it hard to debug failure in processing JMS
> messages. Fix is trivial.
> {code:java}
> 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 ea70d52..c820174 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);
> }
> }
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)