[
https://issues.apache.org/jira/browse/NIFI-6396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-6396.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> Cannot handle ObjectMessage in ConsumeJMS processor
> ---------------------------------------------------
>
> Key: NIFI-6396
> URL: https://issues.apache.org/jira/browse/NIFI-6396
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.6.0
> Reporter: Park Min Sung
> Priority: Major
>
>
> I am using the ConsumeJMS processor with JMSConnectionFactoryProviders.
> but, this processor only handle 'TextMessage' and 'ByteMessage' ? How can I
> handle Object type message ?
> Please tell me how to do solve it ?
> I suggest returning the converted value of the original object message rather
> than skip message (with null).
>
> {code:java}
> ERROR [Timer-Driven Process Thread-62]
> o.apache.nifi.jms.processors.ConsumeJMS
> ConsumeJMS[id=c06ed911-d011-3647-999d-bd13dd54761c] Received a JMS Message
> that was neither a TextMessage nor a BytesMessage [ActiveMQObjectMessage
> {commandId = 6695, responseRequired = true, messageId =
> ID:sinbaram02-41459-1561113357706-1:1:4:1:437, originalDestination = null,
> originalTransactionId = null, producerId =
> ID:sinbaram02-41459-1561113357706-1:1:4:1, destination =
> queue://thinkbig.provenance-event-stats, transactionId = null, expiration =
> 0, timestamp = 1561449523947, arrival = 0, brokerInTime = 1561449523948,
> brokerOutTime = 1561449523948, correlationId = null, replyTo = null,
> persistent = true, type = null, priority = 4, groupID = null, groupSequence =
> 0, targetConsumerId = null, compressed = false, userID = null, content =
> org.apache.activemq.util.ByteSequence@61a5fc7b, marshalledProperties =
> org.apache.activemq.util.ByteSequence@5aec4823, dataStructure = null,
> redeliveryCounter = 0, size = 0, properties = {timestamp=1561449523947},
> readOnlyProperties = true, readOnlyBody = true, droppable = false,
> jmsXGroupFirstForConsumer = false}]; will skip this message.
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)