<?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: Error with attribute in apache nifi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229257#M72713</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/45374/xavwebmaster.html" nodeid="45374" target="_blank"&gt;@Lanic&lt;/A&gt;&lt;P&gt;For NiFi version 1.1.0.2.1.1.0-2 &lt;/P&gt;&lt;P&gt;Put Tcp processor port property doesn't support for Expression language&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45467-puttcp.png" style="width: 806px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15121iDF99F7E2749D52EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45467-puttcp.png" alt="45467-puttcp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the issue got fixed in new versions..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;NiFi 1.4:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45469-nifi14.png" style="width: 1817px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15122i5B7072465610DAF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45469-nifi14.png" alt="45469-nifi14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure does your &lt;STRONG&gt;NiFi version&lt;/STRONG&gt; supports for &lt;STRONG&gt;Expression language&lt;/STRONG&gt; for port property or not, &lt;STRONG&gt;if not&lt;/STRONG&gt; then you need to&lt;STRONG&gt; hard code the port property value&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Refer to the below Community thread on listen TCP Processor&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/140765/nifi-expression-language-support-for-port-number-i.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/140765/nifi-expression-language-support-for-port-number-i.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:59:18 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T00:59:18Z</dc:date>
    <item>
      <title>Error with attribute in apache nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229256#M72712</link>
      <description>&lt;P&gt;Hello good morning, &lt;/P&gt;&lt;P&gt;I am using the PutTCP processor, and through an attribute I want to update the port number to use. &lt;/P&gt;&lt;P&gt;The problem is I got the error: &lt;/P&gt;&lt;P&gt;java. lang. NumberFormatException: For input string:"" &lt;/P&gt;&lt;P&gt;I think the problem is that the attribute comes as a string and what is expected is a number. &lt;/P&gt;&lt;P&gt;So in the putTCP processor, change the port value as follows: &lt;/P&gt;&lt;P&gt;Before: ${port} &lt;/P&gt;&lt;P&gt;After: ${port:toNumber()} &lt;/P&gt;&lt;P&gt;But it still doesn't work. &lt;/P&gt;&lt;P&gt;Can someone please help me with the problem. &lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:33:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229256#M72712</guid>
      <dc:creator>xavwebmaster</dc:creator>
      <dc:date>2017-12-18T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error with attribute in apache nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229257#M72713</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/45374/xavwebmaster.html" nodeid="45374" target="_blank"&gt;@Lanic&lt;/A&gt;&lt;P&gt;For NiFi version 1.1.0.2.1.1.0-2 &lt;/P&gt;&lt;P&gt;Put Tcp processor port property doesn't support for Expression language&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45467-puttcp.png" style="width: 806px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15121iDF99F7E2749D52EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45467-puttcp.png" alt="45467-puttcp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the issue got fixed in new versions..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;NiFi 1.4:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45469-nifi14.png" style="width: 1817px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15122i5B7072465610DAF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45469-nifi14.png" alt="45469-nifi14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure does your &lt;STRONG&gt;NiFi version&lt;/STRONG&gt; supports for &lt;STRONG&gt;Expression language&lt;/STRONG&gt; for port property or not, &lt;STRONG&gt;if not&lt;/STRONG&gt; then you need to&lt;STRONG&gt; hard code the port property value&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Refer to the below Community thread on listen TCP Processor&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/140765/nifi-expression-language-support-for-port-number-i.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/140765/nifi-expression-language-support-for-port-number-i.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:59:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229257#M72713</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T00:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with attribute in apache nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229258#M72714</link>
      <description>&lt;P&gt;Thank you very much for your help, I didn't consider the expression support.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:23:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-attribute-in-apache-nifi/m-p/229258#M72714</guid>
      <dc:creator>xavwebmaster</dc:creator>
      <dc:date>2017-12-20T16:23:43Z</dc:date>
    </item>
  </channel>
</rss>

