FreeBSD 7 and java networking
David Taylor
davidt at yadt.co.uk
Wed Nov 7 10:36:16 PST 2007
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.<init>(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
More information about the freebsd-java
mailing list