From owner-freebsd-java@FreeBSD.ORG Wed Oct 15 09:15:43 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 4C3E41065687 for ; Wed, 15 Oct 2008 09:15:43 +0000 (UTC) (envelope-from benno@NLnetLabs.nl) Received: from open.nlnetlabs.nl (open.nlnetlabs.nl [IPv6:2001:7b8:206:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D5FA98FC21 for ; Wed, 15 Oct 2008 09:15:42 +0000 (UTC) (envelope-from benno@NLnetLabs.nl) Received: from tinkerbell.nlnetlabs.nl (tinkerbell.nlnetlabs.nl [213.154.224.13]) (authenticated bits=0) by open.nlnetlabs.nl (8.14.3/8.14.3) with ESMTP id m9F9FcaU023252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Oct 2008 11:15:39 +0200 (CEST) (envelope-from benno@NLnetLabs.nl) Message-ID: <48F5B4BA.40209@NLnetLabs.nl> Date: Wed, 15 Oct 2008 11:15:38 +0200 From: Benno Overeinder User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <200810141641.m9EGf4QG029110@post.behrens.de> In-Reply-To: <200810141641.m9EGf4QG029110@post.behrens.de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (open.nlnetlabs.nl [213.154.224.1]); Wed, 15 Oct 2008 11:15:39 +0200 (CEST) X-Spam-Status: No, score=-100.0 required=5.0 tests=USER_IN_WHITELIST autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on open.nlnetlabs.nl Subject: Re: Java and IPv6 on BSD - it does not work well 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: Wed, 15 Oct 2008 09:15:43 -0000 Hi, On 10/14/08 6:41 PM, Frank Behrens wrote: > My conclusion: > It is very difficult or impossible to use the current (1.6.0) Java > implementation for server services if they should listen on IPv4 and > IPv6 addresses. With many BSD's default settings it is not even > possible to bind to a combined IPv4/IPv6 wildcard address. > > The current Sun Java implementation should be changed in a way, that > the socket is created with the right address family after the bind > address has been determined. > > > You can read the complete test description and my observations on > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > Do you agree or do you have other experiences? > [Note: I read the list, no Cc: necessary] Thank you for the extensive set of tests. On August 25th, 2008 I submitted a post to this email list describing problems with IPv6 and DNS SRV query type. Short summary, DNS SRV query type works fine with IPv4 on FreeBSD, but with IPv6 enabled JRE on FreeBSD, DNS SRV query types result in a DNS error [Root exception is java.io.IOException: Invalid argument]. From what I can deduce, with IPv6 it tries to resolve _xmpp-server._tcp.google.com as an ordinary A (or quad A) query type (which indeed should give a DNS error), instead of the requested DNS SRV query type. The Java code does work correctly in IPv6 mode on Linux, Mac OS X, and Solaris. Maybe the error is a result of one of the basic operations that fail in your test suite. Best, -- Benno -- Benno J. Overeinder NLnet Labs http://www.nlnetlabs.nl/