From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 19:19:51 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 2B278106566B for ; Fri, 16 Jan 2009 19:19:51 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (mail1.intricatesoftware.com [96.56.4.132]) by mx1.freebsd.org (Postfix) with ESMTP id B3A748FC0A for ; Fri, 16 Jan 2009 19:19:50 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id n0GJILsa018125; Fri, 16 Jan 2009 14:18:23 -0500 (EST) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.3/8.14.3) with ESMTP id n0GJIK7M026122; Fri, 16 Jan 2009 14:18:21 -0500 (EST) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.3/8.14.3/Submit) id n0GJIHxN025241; Fri, 16 Jan 2009 14:18:18 -0500 (EST) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Fri, 16 Jan 2009 14:18:17 -0500 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901161418.17792.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Ronald Klop Subject: Re: openjdk 7 error in socket X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 19:19:51 -0000 Hello Ronald, On Friday 16 January 2009 8:50:32 am Ronald Klop wrote: > 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? > If you are not using IPv6 with the OpenJDK 7 build, then I recommend building with DONT_ENABLE_IPV6="YES" set. In addition to the information Frank Behrens provided please read this too: http://marc.info/?l=freebsd-java&m=122421134821461&w=2 Regards, -Kurt