From owner-freebsd-stable@FreeBSD.ORG Wed Nov 7 18:36:16 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A31B316A41A; Wed, 7 Nov 2007 18:36:16 +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 0B99013C48E; Wed, 7 Nov 2007 18:36:15 +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 AFA413424; Wed, 7 Nov 2007 18:19:02 +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 hc9-ufVWd2PS; Wed, 7 Nov 2007 18:18:57 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 76AA4341D; Wed, 7 Nov 2007 18:18:57 +0000 (GMT) Date: Wed, 7 Nov 2007 18:18:57 +0000 From: David Taylor To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Message-ID: <20071107181857.GA35213@outcold.yadt.co.uk> Mail-Followup-To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: FreeBSD 7 and java networking X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 18:36:16 -0000 Hello, I'm having terrible problems getting java working properly on FreeBSD-7. I've tried java/diablo-jdk15 -- this doesn't work very well at all. It coredumps running azureus and behaves very oddly running jbidwatcher (my two current "test applications"). java/linux-sun-jdk15 and java/linux-sun-jdk16 do work with jbidwatcher. In fact it seems to be fine (I had some problem with _all_ the jdks disliking a MAXDSIZ greater than 900MB). However, azureus cannot be compiled (or run) against a non-native jdk, so I need to compile my own... 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 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1223) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1217) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:906) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at Http.receiveData(Unknown Source) at Http.receivePage(Unknown Source) at ebayServer.getSignInCookie(Unknown Source) at ebayServer.getSignInCookie(Unknown Source) at ebayServer.getNecessaryCookie(Unknown Source) at ebayServer.messageAction(Unknown Source) at PlainMessageQueue.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.ConnectException: 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.Socket.connect(Socket.java:520) at sun.net.NetworkClient.doConnect(NetworkClient.java:155) at sun.net.www.http.HttpClient.openServer(HttpClient.java:387) at sun.net.www.http.HttpClient.openServer(HttpClient.java:522) at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1956) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java:287) at CookieJar.getAllCookiesFromPage(Unknown Source) at CookieJar.getAllCookiesFromPage(Unknown Source) ... 6 more I've put the full output of jbidwatcher at: http://www.yadt.co.uk/~davidt/java/jbidwatcher.out There is also: http://www.yadt.co.uk/~davidt/java/ifconfig.out http://www.yadt.co.uk/~davidt/java/dmesg.out http://www.yadt.co.uk/~davidt/java/make.conf http://www.yadt.co.uk/~davidt/java/kernel-config http://www.yadt.co.uk/~davidt/java/loader.conf If anyone has _any_ ideas (or needs any other information), please let me know... This is driving me nuts! I briefly tried writing a small java testcase to trigger the problem, but my java is rusty and I ran out of time and patience -- my extremely brief test seemed to work ok and I started to think it may be related to multi-threading... If I can't fix it any other way, I'll give it another shot. -- David Taylor