openjdk 7 error in socket

Frank Behrens frank at ilse.behrens.de
Fri Jan 16 07:34:00 PST 2009


Ronald Klop <ronald-freebsd8 at www.klop.ws> wrote on 16 Jan 2009 14:50:
> On Fri, 16 Jan 2009 13:51:29 +0100, Ronald Klop  
> <ronald-freebsd8 at klop.yi.org> wrote:
> > I just build openjdk 7 on FreeBSD 7.1-amd64.
> >
> > I've problems running something which makes a network connection.
> > java.net.SocketException: Invalid argument
>...
> 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?

I don't know the code in openjdk, but I guess it suffers from the 
same architectural deficiencies as JDK 1.6.
(http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html
but I did not evaluate client sockets)

-- 
Frank Behrens, Osterwieck, Germany
PGP-key 0x5B7C47ED on public servers available.



More information about the freebsd-java mailing list