<?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 Re: Publish JMS processor failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112786#M26014</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you have a screen shot of your setting in nifi?&lt;/P&gt;&lt;P&gt;Thanks a mill.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 15:27:45 GMT</pubDate>
    <dc:creator>christian_vande</dc:creator>
    <dc:date>2016-05-24T15:27:45Z</dc:date>
    <item>
      <title>Publish JMS processor failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112783#M26011</link>
      <description>&lt;P&gt;MQ provider: IBM Websphere 7.5&lt;/P&gt;&lt;P&gt;HDF version: 1.2&lt;/P&gt;&lt;P&gt;Trying to consume from A.INBOUND queue using &lt;STRONG&gt;ConsumeJMS&lt;/STRONG&gt; processor and post a message to another Queue : A.OUTBOUND using &lt;STRONG&gt;PublishJMS&lt;/STRONG&gt; processor. Both processors use the same JMS connection service.&lt;/P&gt;&lt;P&gt;ConsumeJMS works fine, but PublishJMS fails with the following error:&lt;/P&gt;&lt;PRE&gt;16:36:52 EDT ERROR 8bd6ca6e-6cc6-4553-9435-08481dffbe2b PublishJMS - JMSPublisher[destination:A.OUTBOUND; pub-sub:false;] Failed while sending message to JMS via JMSPublisher[destination:A.OUTBOUND; pub-sub:false;]&lt;/PRE&gt;&lt;P&gt;MQ server is running locally.&lt;/P&gt;&lt;P&gt;I can confirm the connection info is correct and the queues exist.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 03:38:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112783#M26011</guid>
      <dc:creator>anoop_nair</dc:creator>
      <dc:date>2016-04-23T03:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Publish JMS processor failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112784#M26012</link>
      <description>&lt;P&gt;Do you use SSL connection? Do you have a full stack trace in log files of NiFi?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 17:43:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112784#M26012</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-04-23T17:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Publish JMS processor failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112785#M26013</link>
      <description>&lt;P&gt;Fixed the issue. There is no issue with Publish JMS processor.  Probably  needs more documentation.&lt;/P&gt;&lt;P&gt;This is my original flow that did not work:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kafka Get-&amp;gt; Evaluate JSON -&amp;gt; Publish JMS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exception stakctrace:&lt;/P&gt;&lt;PRE&gt;Caused by: com.ibm.msg.client.jms.DetailedMessageFormatException: JMSCC0049: The property name 'kafka.partition' is not a valid Java(tm) identifier.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_74]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_74]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_74]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_74]
    at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319) ~[na:na]
    at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:233) ~[na:na]
    at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:109) ~[na:na]
    at com.ibm.msg.client.jms.internal.JmsMessageImpl.checkPropName(JmsMessageImpl.java:2168) ~[na:na]
    at com.ibm.msg.client.jms.internal.JmsMessageImpl.setStringProperty(JmsMessageImpl.java:1694) ~[na:na]
    at com.ibm.jms.JMSMessage.setStringProperty(JMSMessage.java:1496) ~[na:na]
    at org.apache.nifi.jms.processors.JMSPublisher$1.createMessage(JMSPublisher.java:87) ~[nifi-jms-processors-0.6.0.1.2.0.0-91.jar:0.6.0.1.2.0.0-91]
    at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:603) ~[spring-jms-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:584) ~[spring-jms-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:494) ~[spring-jms-4.2.4.RELEASE.jar:4.2.4.RELEASE]&lt;/PRE&gt;&lt;P&gt;I saw that all the flow attributes were converted to JMS user headers that included 'kafka.partition' and other kafka attributes. I had to remove all kafka headers (I don't need them) using &lt;STRONG&gt;UpdateAttribute&lt;/STRONG&gt; processor and then posted the message to the JMS queue. Now my flow looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kafka get-&amp;gt; Evaluate JSON -&amp;gt; UpdateAttribute -&amp;gt; Publish JMS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you do need all the flow attributes to be JMS headers ensure that JMS user header name conforms to Java.isIdentifierPart() rules. Here is the info from Java 7 javadoc:&lt;/P&gt;&lt;PRE&gt;public static boolean isJavaIdentifierPart(int codePoint)
Determines if the character (Unicode code point) may be part of a Java
 identifier as other than the first character.
 
 A character may be part of a Java identifier if any of the following
 are true:
 
  it is a letter
   it is a currency symbol (such as '$')
   it is a connecting punctuation character (such as '_')
   it is a digit
   it is a numeric letter (such as a Roman numeral character)
   it is a combining mark
   it is a non-spacing mark
  isIdentifierIgnorable(codePoint) returns true for
 the character
 
&lt;/PRE&gt;&lt;P&gt;Based on the above rule 'kafka.partition' attribute is invalid and should be renamed to either 'kafkaPartition' or 'kafka_partition' before publishing to a JMS queue.&lt;/P&gt;&lt;P&gt;Hope this helps. Please correct me if I'm wrong or add on more information.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 21:53:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112785#M26013</guid>
      <dc:creator>anoop_nair</dc:creator>
      <dc:date>2016-04-25T21:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Publish JMS processor failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112786#M26014</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you have a screen shot of your setting in nifi?&lt;/P&gt;&lt;P&gt;Thanks a mill.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 15:27:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112786#M26014</guid>
      <dc:creator>christian_vande</dc:creator>
      <dc:date>2016-05-24T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Publish JMS processor failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112787#M26015</link>
      <description>&lt;P&gt;Here is my github page with screenshots to IBM MQ and Oracle connections: &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/anair-it/nifi-docker"&gt;https://github.com/anair-it/nifi-docker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;MQ client libraries are in "extra_lib" directory but you can place it anywhere you want.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 02:18:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Publish-JMS-processor-failing/m-p/112787#M26015</guid>
      <dc:creator>anoop_nair</dc:creator>
      <dc:date>2016-05-25T02:18:08Z</dc:date>
    </item>
  </channel>
</rss>

