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/03 13:35:00 UTC
[jira] [Issue Comment Deleted] (NIFI-6414)
java.net.PortUnreachableException: null when using DatagramChannelSender
(UDP)
[ https://issues.apache.org/jira/browse/NIFI-6414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sol Huebner updated NIFI-6414:
------------------------------
Comment: was deleted
(was: It seems that with that extra line the NiFi tests fail. I need to spend more time to debug why.)
> 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
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)