Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 57117 invoked from network); 7 Jan 2006 14:45:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jan 2006 14:45:30 -0000 Received: (qmail 13072 invoked by uid 500); 7 Jan 2006 14:45:29 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 13017 invoked by uid 500); 7 Jan 2006 14:45:29 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 13006 invoked by uid 99); 7 Jan 2006 14:45:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 06:45:29 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_ILLEGAL_IP,RCVD_IN_WHOIS_BOGONS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.140.2.72] (HELO aa005msg.fastwebnet.it) (213.140.2.72) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 06:45:27 -0800 Received: from ms005msg.fastwebnet.it (10.31.41.25) by aa005msg.fastwebnet.it (7.2.069.1) id 43BF48410001C3BD for dev@directory.apache.org; Sat, 7 Jan 2006 15:45:05 +0100 Received: from [1.94.30.75] (1.94.30.75) by ms005msg.fastwebnet.it (7.2.069.3) id 43B15D9F009F4175 for dev@directory.apache.org; Sat, 7 Jan 2006 15:45:05 +0100 Message-ID: <43BFD3F0.6040306@eurone.it> Date: Sat, 07 Jan 2006 15:45:04 +0100 From: Alessandro Torrisi User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@directory.apache.org Subject: [MINA] BindException on Unix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I downloaded today the SVN trunk of Mina, I think it is always the same error you write about from many days. When I start the server and I stop it and immediately start again I can see this: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.apache.mina.transport.socket.nio.support.SocketAcceptorDelegate.registerNew(SocketAcceptorDelegate.java:435) at org.apache.mina.transport.socket.nio.support.SocketAcceptorDelegate.access$2(SocketAcceptorDelegate.java:399) at org.apache.mina.transport.socket.nio.support.SocketAcceptorDelegate$Worker.run(SocketAcceptorDelegate.java:293) 07-01-2006 15:38:15 ERROR - [org.p2p.jxhub.JxHubServer] - System exiting When I develop on Windows there's no error. I have to wait some seconds or minutes according to the connected users number. Can we do something for unbind correctly on Unix ? I tryied it on Mac Os X and Linux, latest JVMs, the same error. Regards, Alex