You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Sol Huebner (JIRA)" <ji...@apache.org> on 2019/07/02 17:07:00 UTC
[jira] [Created] (NIFI-6414) java.net.PortUnreachableException:
null when using DatagramChannelSender (UDP)
Sol Huebner created NIFI-6414:
---------------------------------
Summary: java.net.PortUnreachableException: null when using DatagramChannelSender (UDP)
Key: NIFI-6414
URL: https://issues.apache.org/jira/browse/NIFI-6414
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.9.2
Environment: CentOS 7 with NiFi 1.9.2
Reporter: Sol Huebner
I get "java.net.PortUnreachableException: null" when I use PutSyslog using UDP. I have no issues with TCP. The issue only occurs when you try to use the connection multiple times.
I found a similar issue here: [http://www.java-gaming.org/index.php?PHPSESSID=u7ufav5hekdirj9991jll36e81&topic=1751.msg16721#msg16721]
So I tried to modify DatagramChannelSender.java of the nifi-processor-utils:
if (!channel.isConnected()) {
{color:#59afe1}channel.socket().bind(newInetSocketAddress(InetAddress.getByName(host), port));{color}
channel.connect(newInetSocketAddress(InetAddress.getByName(host), port));
}
And with the added line I have no more issues and it compiled without errors.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)