It is definitely the server. I told the client to use port 8083, just to see what the error is and its still:<div><br></div><div>Exception in thread "main" org.jboss.netty.channel.ChannelException: Failed to bind to: <a href="http://0.0.0.0/0.0.0.0:8080">0.0.0.0/0.0.0.0:8080</a></div>
<div><br></div><div>Also, I have this on both my Ubuntu laptop and a Centos workstation when trying to run the examples in Eclipse.</div><div><br></div><div>Tristan<br><br><div class="gmail_quote">2010/6/17 Marc-André Laverdière <span dir="ltr"><<a href="mailto:marcandre.laverdiere@gmail.com">marcandre.laverdiere@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Are you sure its the server socket that throws that exception, or is<br>
it the client(s)?<br>
<br>
The reason I'm asking that is that I had that kind of exception with<br>
client sockets with multiple threads (that was using JNDI)... the<br>
client sockets somehow wanted to all be on the same port and it was<br>
throwing that exception. The solution was to synchronize that bit of<br>
code.<br>
<br>
It feels like a VM issue... how come it doesn't pick a random port in<br>
an atomic way?<br>
<div class="im"><br>
Marc-André LAVERDIÈRE<br>
"Perseverance must finish its work so that you may be mature and<br>
complete, not lacking anything." -James 1:4<br>
<a href="http://mlaverd.theunixplace.com/blog" target="_blank">mlaverd.theunixplace.com/blog</a><br>
<br>
/"\<br>
\ / ASCII Ribbon Campaign<br>
X against HTML e-mail<br>
/ \<br>
<br>
<br>
<br>
</div>2010/6/17 "이희승 (Trustin Lee)" <<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi Tristan,<br>
><br>
> That's a problem I have never heard before.. Please let me know once<br>
> you got to know how to reproduce the problem reliably in different machines.<br>
><br>
> Thanks,<br>
> Trustin<br>
><br>
> On 06/16/2010 01:48 AM, kungfooguru wrote:<br>
>><br>
>> I am attempting to use the examples that come with the Netty source code.<br>
>> I've loaded them up in Eclipse and started with the Echo example. The server<br>
>> appears to start fine and the ThroughputMonitor begins to write to the<br>
>> console. The server does not throw any exceptions until I attempt to connect<br>
>> with the echo client and the exception is 'Exception in thread "main"<br>
>> org.jboss.netty.channel.ChannelException: Failed to bind to: ... Caused by:<br>
>> java.net.BindException: Address already in use'. I've tried different ports<br>
>> and I have checked through netstat to see that they aren't being used before<br>
>> trying but it still happens... Even weirder is that this isn't thrown till I<br>
>> run the client. I no idea at all how a client can cause that to happen,<br>
>> haha. If it can't bind to the port it should never know the client is<br>
>> sending something to it!<br>
>><br>
>> Any help would much appreciated.<br>
>><br>
>> Thanks,<br>
>> Tristan<br>
><br>
> --<br>
> what we call human nature in actuality is human habit<br>
> <a href="http://gleamynode.net/" target="_blank">http://gleamynode.net/</a><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> netty-users mailing list<br>
> <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
><br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a></div></div></blockquote></div><br></div>