From owner-freebsd-java@FreeBSD.ORG Sun Feb 24 14:40:36 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 313B816A400 for ; Sun, 24 Feb 2008 14:40:36 +0000 (UTC) (envelope-from anrays@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id D37C713C4D5 for ; Sun, 24 Feb 2008 14:40:35 +0000 (UTC) (envelope-from anrays@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1236292wxd.7 for ; Sun, 24 Feb 2008 06:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=pDqgE5Ie5owmDXYuZv2W6FbjP8EoTgc1LwpuuuchD5w=; b=NSWoHliBrI7f0xDuls9Qbxc5e382AHEy7EvCwnLzGzZTqdUAy3JUqVT60e3WpQ7Udk9AIJZqoWunrTFVGoWJmat7FqcLXInbhRgKVqOYG8ULD/pvE47KasedyLl9idinzIDO1WE7n/+Ijp3q51A8BZ4VhqSs2XVP+0oFEYETTRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sVA4M7SyNHaZo1frD5mVPMg4/TUjsmeuCc8PgrJ0U26Tqoe4AseqOorN8HNsoFuDiEE4eXAgTELcMceHiHzWXTTJFQqdQGaUJ37p0Cr9Q/0TuSVuY3FmFBQJrzuXRPeC/Hebg1oawiWAZFqSx9x9v7MkkudBLAXweiT2cJNH9O0= Received: by 10.65.250.11 with SMTP id c11mr3721443qbs.17.1203862313597; Sun, 24 Feb 2008 06:11:53 -0800 (PST) Received: by 10.65.242.5 with HTTP; Sun, 24 Feb 2008 06:11:53 -0800 (PST) Message-ID: <47e01da70802240611s71d8a744p8dc622addf308eed@mail.gmail.com> Date: Sun, 24 Feb 2008 16:11:53 +0200 From: "Andrey Slusar" Sender: anrays@gmail.com To: "Daniel Engberg" In-Reply-To: <47C1655E.1020301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47C1655E.1020301@gmail.com> X-Google-Sender-Auth: 44ac860b01026050 Cc: freebsd-java@freebsd.org Subject: Re: Java JDK 1.6p4 and Azureus X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 14:40:36 -0000 2008/2/24, Daniel Engberg : > I've tried both suggestions given (recompile kernel without IPv6 > support) and adding -Djava.net.preferIPv4Stack=true without any > difference. Azureus still connects to peers/seeds without any issues but > doesnt download any pieces. Taking a stock kernel and adding IPv6 > support to Java 1.6 gives this error message. > > StartServer ERROR: unable to bind to 127.0.0.1:6880 for passed torrent info > StartSocket: passing startup args to already-running process. > java.net.SocketException: Invalid argument > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > at java.net.Socket.connect(Socket.java:519) > at java.net.Socket.connect(Socket.java:469) > at java.net.Socket.(Socket.java:366) > at java.net.Socket.(Socket.java:180) > at > org.gudy.azureus2.ui.common.Main$StartSocket.(Main.java:370) > at org.gudy.azureus2.ui.common.Main.main(Main.java:155) > > The only way to get it going is to add -Djava.net.preferIPv4Stack=true > but it still refuses to download pieces. Unfortunately I dont have > knowledge to debug the JVM but I have a feelking that more applications > might be affected. > On my RELENG_7 I386 this problem is reproduce too. In kernel ipv6 is not found, when i'm run azureus with -Djava.net.preferIPv4Stack=true, azureus is not download/upload - 0% for all torrents. -- Regards, Andrey.