Created 12-18-2017 09:33 AM
Hello good morning,
I am using the PutTCP processor, and through an attribute I want to update the port number to use.
The problem is I got the error:
java. lang. NumberFormatException: For input string:""
I think the problem is that the attribute comes as a string and what is expected is a number.
So in the putTCP processor, change the port value as follows:
Before: ${port}
After: ${port:toNumber()}
But it still doesn't work.
Can someone please help me with the problem.
Greetings
Created on 12-18-2017 04:11 PM - edited 08-17-2019 05:59 PM
For NiFi version 1.1.0.2.1.1.0-2
Put Tcp processor port property doesn't support for Expression language
But the issue got fixed in new versions..
NiFi 1.4:-
Make sure does your NiFi version supports for Expression language for port property or not, if not then you need to hard code the port property value.
Refer to the below Community thread on listen TCP Processor
Created on 12-18-2017 04:11 PM - edited 08-17-2019 05:59 PM
For NiFi version 1.1.0.2.1.1.0-2
Put Tcp processor port property doesn't support for Expression language
But the issue got fixed in new versions..
NiFi 1.4:-
Make sure does your NiFi version supports for Expression language for port property or not, if not then you need to hard code the port property value.
Refer to the below Community thread on listen TCP Processor
Created 12-20-2017 08:23 AM
Thank you very much for your help, I didn't consider the expression support.