nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-1549) Bug in JMSConsumer makes it hard to debug failure in processing JMS messages.
Date Fri, 17 Jun 2016 16:17:05 GMT

    [ https://issues.apache.org/jira/browse/NIFI-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336377#comment-15336377
] 

ASF subversion and git services commented on NIFI-1549:
-------------------------------------------------------

Commit ff4b91e70750307e7a459f8b92fee1dedb7193d5 in nifi's branch refs/heads/0.x from [~rekhajoshm]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=ff4b91e ]

NIFI-1549: Fix JMSConsumer exception

This closes #539


> 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
>             Fix For: 1.0.0, 0.7.0
>
>
> 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)

Mime
View raw message