You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Darshan Sundaresh (JIRA)" <ji...@apache.org> on 2015/07/07 08:39:05 UTC

[jira] [Commented] (CAMEL-8919) NettyUDPMulticastAsyncTest failing on Windows

    [ https://issues.apache.org/jira/browse/CAMEL-8919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616263#comment-14616263 ] 

Darshan Sundaresh commented on CAMEL-8919:
------------------------------------------

Hi i managed to fix this issue. The problem was in binding to the multicast address on windows which i am not certain why. 
changing the bind without the address seems to solve the problem.


> NettyUDPMulticastAsyncTest failing on Windows
> ---------------------------------------------
>
>                 Key: CAMEL-8919
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8919
>             Project: Camel
>          Issue Type: Test
>          Components: camel-netty4
>    Affects Versions: 2.14.1, 2.15.1, 2.15.2
>         Environment: Windows 7 Java 1.7
>            Reporter: Darshan Sundaresh
>            Priority: Minor
>
> The NettyUDPMulticastAsyncTest fails with an java.nio.channels.ClosedChannelException even with a valid interface. 
> The udp multicast functionality does not seem to work on windows although it works perfectly on OSX.
> Stacktrace-
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.026 sec <<< FAILURE! - in org.apache.camel.component.netty4.NettyUDPMulticastAsyncTest
> testUDPInOnlyMulticastWithNettyConsumer(org.apache.camel.component.netty4.NettyUDPMulticastAsyncTest)  Time elapsed: 0.023 sec  <<< ERROR!
> java.nio.channels.ClosedChannelException: null
>         at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:832)
>         at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894)
>         at io.netty.channel.socket.nio.NioDatagramChannel.joinGroup(NioDatagramChannel.java:409)
>         at io.netty.channel.socket.nio.NioDatagramChannel.joinGroup(NioDatagramChannel.java:382)
>         at io.netty.channel.socket.nio.NioDatagramChannel.joinGroup(NioDatagramChannel.java:375)
>         at org.apache.camel.component.netty4.SingleUDPNettyServerBootstrapFactory.startServerBootstrap(SingleUDPNettyServerBootstrapFactory.java:171)
>         at org.apache.camel.component.netty4.SingleUDPNettyServerBootstrapFactory.doStart(SingleUDPNettyServerBootstrapFactory.java:92)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)