From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 18:11:11 2007 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 5E23B16A41A for ; Thu, 8 Nov 2007 18:11:11 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.freebsd.org (Postfix) with ESMTP id F126213C4B9 for ; Thu, 8 Nov 2007 18:11:10 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id 24BB16184; Thu, 8 Nov 2007 18:11:03 +0000 (GMT) X-Virus-Scanned: amavisd-new at yadt.co.uk Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FcafSR74tDXX; Thu, 8 Nov 2007 18:10:56 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 3B177617B; Thu, 8 Nov 2007 18:10:56 +0000 (GMT) Date: Thu, 8 Nov 2007 18:10:56 +0000 From: David Taylor To: Nick Johnson Message-ID: <20071108181055.GA20748@outcold.yadt.co.uk> References: <20071107181857.GA35213@outcold.yadt.co.uk> <20071107103941.G46367@turing> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20071107103941.G46367@turing> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: FreeBSD 7 and java networking 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: Thu, 08 Nov 2007 18:11:11 -0000 On Wed, 07 Nov 2007, Nick Johnson wrote: > On Wed, 7 Nov 2007, David Taylor wrote: > > > I've tried compiling java/jdk15 and java/jdk16 bootstrapping with > > all three binary jdks (diablo 1.5, linux 1.5, linux 1.6). > > > > They all give the same problem: > > > > Running jbidwatcher or azureus results in a mass of messages > > like the following, whenever network IO is attempted: > > > > java.net.ConnectException: Invalid argument > > Did you try running it with -Djava.net.preferIPv4Stack=true ? Thank you! As it turns out, I'd just noticed the global "WITH_IPV6=yes" that I'd put in /etc/make.conf, and started recompiling java without IPv6 support shortly before you sent that message. I had already tried (both native jdks) with IPV6 turned off in the "make config" menu -- or so I thought -- but my choice was overriden by that forgotten entry. The IPv6-less jdk works perfectly, now all that remains is to figure out why IPv6 support has stopped working... I'm fairly sure it worked fine before I switched motherboards and upgraded to 7-CURRENT (now stable, or beta, or whatever). -- David Taylor