Channel.write(msg, inetaddress) fails on windows not linux

wolfmanjm morris at wolfman.com
Sun Jun 12 08:01:28 EDT 2011


Hi,

I have a server which runs fine on Linux, but on Windows it doesn't works
whenever it tries to write to a UDP channel, it gets the error shown below.

Now I am using the Channel.write(msg, inetaddress) so it shouldn't matter
that it is not connected, plus exactly the same code runs fine on linux.

I'm using netty version 3.2.4.Final

What am I missing? Other than I shouldn't even be trying to run on Windows
:)

Thanks

java.nio.channels.NotYetConnectedException
        at sun.nio.ch.DatagramChannelImpl.write(Unknown Source)
        at
org.jboss.netty.channel.socket.nio.SocketSendBufferPool$PooledSendBuffer.transferTo(SocketSendBufferPool.java:239)
        at
org.jboss.netty.channel.socket.nio.NioDatagramWorker.write0(NioDatagramWorker.java:534)
        at
org.jboss.netty.channel.socket.nio.NioDatagramWorker.writeFromTaskLoop(NioDatagramWorker.java:467)
        at
org.jboss.netty.channel.socket.nio.NioDatagramChannel$WriteTask.run(NioDatagramChannel.java:327)
        at
org.jboss.netty.channel.socket.nio.NioDatagramWorker.processWriteTaskQueue(NioDatagramWorker.java:336)
        at
org.jboss.netty.channel.socket.nio.NioDatagramWorker.run(NioDatagramWorker.java:260)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Channel-write-msg-inetaddress-fails-on-windows-not-linux-tp6467079p6467079.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list