From owner-freebsd-java@FreeBSD.ORG Fri Aug 3 09:56:14 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 6C78216A501 for ; Fri, 3 Aug 2007 09:56:14 +0000 (UTC) (envelope-from caelian@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id EB81113C457 for ; Fri, 3 Aug 2007 09:56:13 +0000 (UTC) (envelope-from caelian@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so494041uge for ; Fri, 03 Aug 2007 02:56:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AgdxVoF16zB2w336HGkvjqjHAvktMwq4UrEtFIhYL1dSOQphMhF7EzzzgemNgi7+OLGjB+tVLjwwK7pN0XRPHWeO0um745mOT4v0UIvFxOYhWcp1tqO8oJSKpBiR3OWuTClpqBWU7tdwh0UJme2C0CTdzFi69LmCGFRtwdo4NtM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oIcMw2UqNTqLoqOBECkZTEiYyS3A/UfXLBt4OVKWQuo4Oi+s9NvIahcpIz8FXZ7mUFaUNt78bCidqZsSYoczatqM7+qSNgRIj55Gnekxeacvpv+7e/2K+wcre2sAxLupSnhjzrtt0OtSapvCUZXQIai5o/HYY/Q1c7cLnXkGs6g= Received: by 10.78.150.7 with SMTP id x7mr779674hud.1186133381876; Fri, 03 Aug 2007 02:29:41 -0700 (PDT) Received: by 10.78.160.4 with HTTP; Fri, 3 Aug 2007 02:29:41 -0700 (PDT) Message-ID: Date: Fri, 3 Aug 2007 11:29:41 +0200 From: "Pascal Hofstee" To: "Greg Lewis" In-Reply-To: <20070803053142.GA4434@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070803053142.GA4434@misty.eyesbeyond.com> Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.6.0 patchset 1 "Brumby" 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, 03 Aug 2007 09:56:14 -0000 On 8/3/07, Greg Lewis wrote: > On behalf of the BSD Java Porting team, I'm pleased to announce the > availability of Patchset 1 "Brumby" for JDK 1.6, based on the > JDK 1.6.0 JRL source code. > > As usual with the first patchset for a release, this patchset may be a > little rough around the edges. Its considered beta and shouldn't be used > in a production environment. Having said that, it feels more solid than > the first patchsets for previous JDK releases and should generally work > fairly well. First of all Thanks to the FreeBSD Java Team for making this all happen ... i do believe though i have encountered a bug that i am not sure how to debug from here and would appreciate some assistence on: ---------[ Foo.java ]---------- import java.net.Socket; import java.io.*; class Foo { public static void main(String[] args) { Socket sock; try { sock = new Socket("172.16.30.1", 10485); } catch (IOException e) { e.printStackTrace(); } } } ----------[ End of Foo.java ]---------- After compiling Foo.java running it gives me the following output: 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:179) at Foo.main(Foo.java:11) As far as i can tell i am not doing anything wrong in the code myself but it seems impossible to actually create a simple Socket object in the native jdk16 port at this time. Please correct me if wrong :) -- Pascal Hofstee