Netty examples fail to bind

kungfooguru kungfooguru at gmail.com
Tue Jun 15 12:48:59 EDT 2010


I am attempting to use the examples that come with the Netty source code.
I've loaded them up in Eclipse and started with the Echo example. The server
appears to start fine and the ThroughputMonitor begins to write to the
console. The server does not throw any exceptions until I attempt to connect
with the echo client and the exception is 'Exception in thread "main"
org.jboss.netty.channel.ChannelException: Failed to bind to: ... Caused by:
java.net.BindException: Address already in use'. I've tried different ports
and I have checked through netstat to see that they aren't being used before
trying but it still happens... Even weirder is that this isn't thrown till I
run the client. I no idea at all how a client can cause that to happen,
haha. If it can't bind to the port it should never know the client is
sending something to it!

Any help would much appreciated.

Thanks,
Tristan 
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-examples-fail-to-bind-tp5182800p5182800.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list