<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413681#M254190</link>
    <description>&lt;P&gt;During testing of the Enterprise Message Bridge implemented using Apache NiFi, it was identified that the Content-Type header becomes null when messages are routed from &lt;STRONG&gt;Message Broker A&lt;/STRONG&gt; to &lt;STRONG&gt;Message Broker B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The bridge is designed to enable message flow between the two brokers using Apache NiFi as the intermediary integration layer. However, while validating message headers at the destination broker, the Content-Type attribute is not being preserved and is received as null.&lt;/P&gt;&lt;P&gt;This behavior was observed during message inspection at the consumer side connected to Broker B.&lt;BR /&gt;&lt;BR /&gt;May I know how to preserve message Content-Type attribute/properties ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using : ConsumeJMS and PublishJMS&lt;BR /&gt;Protocol: AMQP 1.0&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2026 15:20:17 GMT</pubDate>
    <dc:creator>oka</dc:creator>
    <dc:date>2026-03-10T15:20:17Z</dc:date>
    <item>
      <title>Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413681#M254190</link>
      <description>&lt;P&gt;During testing of the Enterprise Message Bridge implemented using Apache NiFi, it was identified that the Content-Type header becomes null when messages are routed from &lt;STRONG&gt;Message Broker A&lt;/STRONG&gt; to &lt;STRONG&gt;Message Broker B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The bridge is designed to enable message flow between the two brokers using Apache NiFi as the intermediary integration layer. However, while validating message headers at the destination broker, the Content-Type attribute is not being preserved and is received as null.&lt;/P&gt;&lt;P&gt;This behavior was observed during message inspection at the consumer side connected to Broker B.&lt;BR /&gt;&lt;BR /&gt;May I know how to preserve message Content-Type attribute/properties ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using : ConsumeJMS and PublishJMS&lt;BR /&gt;Protocol: AMQP 1.0&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 15:20:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413681#M254190</guid>
      <dc:creator>oka</dc:creator>
      <dc:date>2026-03-10T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413692#M254191</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/146423"&gt;@oka&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 02:26:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413692#M254191</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2026-03-11T02:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413702#M254198</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/146423"&gt;@oka&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share more details about your Apache NiFi version and dataflow configuration?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Full Apache NiFi version&lt;/LI&gt;&lt;LI&gt;PublishJMS processor configuration&lt;/LI&gt;&lt;LI&gt;Sample FlowFile metadata/attributes of a FlowFile queued to the PublishJMS processor (exclude any sensitive values).&lt;/LI&gt;&lt;LI&gt;Which FlowFile contains the attribute string you expect to be sent to JMS endpoint&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;These details can be helpful in evaluating your setup and possible issue/solution.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 12:39:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413702#M254198</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-03-11T12:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413914#M254279</link>
      <description>&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;2.2.0&lt;BR /&gt;2) However, I didn’t notice any content-type or content-encoding attributes in the FlowFile within consumeJMS.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;JMSXDeliveryCount
1
filename
576fb206-3a78-4330-b85e-2c7215f57702
jms.messagetype
TextMessage
jms.source.destination
q/mal/test/dev/test-abc
jms_deliveryMode
2
jms_destination
t/mal/test/dev/test-abc/v1/test
jms_expiration
0
jms_messageId
ID:AMQP_NO_PREFIX:a25814dd-3135-4733-8378-bd8348f4ebbb
jms_priority
4
jms_redelivered
false
jms_timestamp
1777010201098
path
./
uuid
576fb206-3a78-4330-b85e-2c7215f56602&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 11:59:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413914#M254279</guid>
      <dc:creator>oka</dc:creator>
      <dc:date>2026-04-24T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413916#M254281</link>
      <description>&lt;P&gt;I noticed that the Content-Type and Content-Encoding headers are missing after using ConsumeJMS. Is this expected behavior? Since I’m implementing a message bridge, I’d like to preserve and pass along the same Content-Type and Content-Encoding values to the target broker. How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 12:06:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413916#M254281</guid>
      <dc:creator>oka</dc:creator>
      <dc:date>2026-04-24T12:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413971#M254305</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/146423"&gt;@oka&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I believe your issue is that "-" is not a valid character in the JMS specification.&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/30022453/how-to-set-content-type-header-for-jms-message" target="_blank"&gt;https://stackoverflow.com/questions/30022453/how-to-set-content-type-header-for-jms-message&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;While the "-" is valid for AMQP messages.&lt;BR /&gt;There is a &lt;A href="https://nifi.apache.org/components/org.apache.nifi.amqp.processors.ConsumeAMQP/" target="_blank"&gt;ConsumeAMQP&lt;/A&gt; processor but I see it only supports AMQP version 0.91&lt;BR /&gt;&lt;BR /&gt;You don't have a issue connecting but just sound like these specific headers are ignored since they contain that invalid JMS character.&lt;/P&gt;&lt;P&gt;There is an existing Apache NiFi jira (&lt;A href="https://issues.apache.org/jira/browse/NIFI-14670" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-14670&lt;/A&gt;) for adding AMQP 1.0 support to the AMQP processors; however, it is open and unassigned.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 18:54:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413971#M254305</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-29T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413985#M254315</link>
      <description>&lt;P&gt;I’m able to connect to the message broker and successfully consume messages. However, I’ve noticed that some information—specifically contentType and contentEncoding—is missing. From what I understand, these fields are often treated as “private” since the Qpid JMS client does not provide a public API to set them directly.&lt;BR /&gt;&lt;BR /&gt;As I’m building an enterprise bridge using Apache Nifi, I want to preserve the original contentType and contentEncoding values when republishing the same message to another broker. May I know how to do it?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 05:19:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413985#M254315</guid>
      <dc:creator>oka</dc:creator>
      <dc:date>2026-05-02T05:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Type becomes null when bridging messages from Broker A to Broker B via Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413989#M254318</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/146423"&gt;@oka&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Perhaps others in the community may hav additional suggestions here, but since the "-" is not a valid character in JMS, you would need to use a AMQP processor to support these headers. As mentioned before there is a&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-14670" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-14670&lt;/A&gt;&amp;nbsp;jira for adding AMQP 1.0 support to ConsumeAMQP processor, but it is still open and unassigned.&amp;nbsp;Now that jira points to using the Qpid JMS Client in ConsumeJMS and as you experienced it works but still has limitations.&amp;nbsp; Those limitations impact these specific properties with the "-" in the name.&amp;nbsp; I would suggest adding your experience with trying to use Qpid AMQP in the above jira and what impacts it has on the two headers you require to maybe push the Apache community to adding AMQP 1.0 support to the AMQP specific processors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Additionally, there is this jira (&lt;A href="https://issues.apache.org/jira/browse/QPID-4992" target="_blank"&gt;https://issues.apache.org/jira/browse/QPID-4992&lt;/A&gt;), where an individual expressed some success preserving the content type header by using&amp;nbsp;&lt;SPAN&gt;ActiveMQ JMS API instead of the&amp;nbsp;Qpid AMQP JMS API.&amp;nbsp; So you may want to give this jira a read and maybe try this for yourself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 12:41:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Content-Type-becomes-null-when-bridging-messages-from-Broker/m-p/413989#M254318</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-05-04T12:41:39Z</dc:date>
    </item>
  </channel>
</rss>

