[ 
https://issues.apache.org/jira/browse/NIFI-6414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann resolved NIFI-6414.
------------------------------------
    Fix Version/s: 1.14.0
       Resolution: Fixed

Refactoring PutSyslog to use Netty changed the behavior of PutSyslog, avoiding 
some of the issues with the DatagramChannelSender.

> 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: Minor
>             Fix For: 1.14.0
>
>          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 but it seems that with that 
> extra line the NiFi tests fail. I need to spend more time to debug why.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to