[
https://issues.apache.org/jira/browse/NIFI-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16987889#comment-16987889
] Gardella Juan Pablo commented on NIFI-6916: ------------------------------------------- The problem happens at [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/JMSConsumer.java#L99] and at [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/JMSConsumer.java#L101]. For a TextMessage, it is called [https://github.com/apache/nifi/blob/ea9b0db2f620526c8dd0db595cf8b44c3ef835be/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/MessageBodyToBytesConverter.java#L52] and will throw a NPE. This will cause acknowledge call ([https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/JMSConsumer.java#L124]) is not called for a null message. Let me know if I am clear now. > Null messages cannot be acknowledge at JMSConsumer > -------------------------------------------------- > > Key: NIFI-6916 > URL: https://issues.apache.org/jira/browse/NIFI-6916 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Affects Versions: 1.10.0 > Reporter: Gardella Juan Pablo > Priority: Major > > {{ConsumeJMS}} procesor does not handled null messages properly. Null > messages are never acknowledge. -- This message was sent by Atlassian Jira (v8.3.4#803005)
