title: PublishJMS processor fails while publishing json message to IBM Websphere MQ
body: <p>I am facing an issue in PublishJMS processor of NIFI while pushing the json message from it.</p>
  
  <p>Note:
  <em>Just to add tried various processors to see if the attributes can be modified, but none helped, I am able to figure out the issue is only because I am using ConsumeJMS &amp; PublishJMS together in the same flow.</em></p>
  
  <p>JSON Message to be published:</p>
  
  <pre><code>{"dataprepcomplete":{"modelfamilytype":"property","groupid":"1","claims":[{"requestid":"1","claimid":"10001"},{"requestid":"2","claimid":"10002"}]}}
  </code></pre>
  
  <p>The issue of the "JMSCC0051: THE PROPERTY 'JMS_IBM_REPORT_PASS_CORREL_ID' SHOULD SET USING TYPE 'JAVA.LANG.INTEGER', NOT 'JAVA.LANG.STRING'" is resolved as per the solution posted  in my earlier <a href="https://stackoverflow.com/questions/43213416/publishjms-processor-failing-for-writing-message-to-ibm-websphere-mq">post</a> and I am able to publish json messages to my MQ Queue from the below flow.</p>
  
  <p><strong>QueryDatabaseTable > ConvertAvroToJSON > PublishJMS</strong></p>
  
  <p>But I am getting the same error as reported in the earlier post from the PublishJMS processor when I am using the PublishJMS is the below mentioned flow.</p>
  
  <p><strong>ConsumeJMS > ReplaceText > PublishJMS</strong></p>
  
  <p>Am I missing anything?</p>
  
  <p>Do I have to plug some other processor before the PublishJMS to be able to publish the message successfully.?</p>
  
  <p>Any help on this will be highly appreciated.</p>
  
  <p>Below are properties for the procesors.</p>
  
  <p>ConsumeJMS properties:
  <a href="https://i.stack.imgur.com/Uk9Bu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uk9Bu.png" alt="enter image description here"></a></p>
  
  <p>ReplaceText properties
  <a href="https://i.stack.imgur.com/pGNZ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pGNZ4.png" alt="enter image description here"></a></p>
  
  <p>PublishJMS properties
  <a href="https://i.stack.imgur.com/2pcEg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2pcEg.png" alt="enter image description here"></a></p>
  
  <p>DataProvenance of PublishJMS processor
  <a href="https://i.stack.imgur.com/dtfcu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dtfcu.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/XziLa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XziLa.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/w9Rtt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w9Rtt.png" alt="enter image description here"></a></p>