From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 13:50:35 2009 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 795D91065672 for ; Fri, 16 Jan 2009 13:50:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1938FC20 for ; Fri, 16 Jan 2009 13:50:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp id 1LNp5l-0005Kt-GA for ; Fri, 16 Jan 2009 14:50:33 +0100 Received: (qmail 2039 invoked from network); 16 Jan 2009 13:50:32 -0000 Received: from localhost (HELO 82-170-177-25.ip.telfort.nl) (127.0.0.1) by localhost with SMTP; 16 Jan 2009 13:50:32 -0000 Date: Fri, 16 Jan 2009 14:50:32 +0100 To: freebsd-java@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.63 (FreeBSD) Subject: Re: openjdk 7 error in socket 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: Fri, 16 Jan 2009 13:50:35 -0000 On Fri, 16 Jan 2009 13:51:29 +0100, Ronald Klop wrote: > > Hi, > > I just build openjdk 7 on FreeBSD 7.1-amd64. > It builds after I found this > http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-August/000006.html. > > I've problems running something which makes a network connection. > java.net.SocketException: Invalid argument > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) > > I don't set any special socket option. Not in Java and I don't have > special settings in FreeBSD also. Running GENERIC kernel. > > I'm using ipv4. This happens if I make a connection to mysql, but also > in the subclipse plugin in eclipse if I connect to the svn server. > Is this a known issue? Can I solve this? Or provide more information? > > Ronald. I spoke to soon. http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-October/000102.html The option -Djava.net.preferIPv4Stack=true helps, but it is a little inconvenient to add it to all java invocations. I asume a better fix is in the make? Or are there better workarounds? Greetings, Ronald. (who is now quite happily running tomcat and eclipse in openjdk 7)