Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 14:21:16 +0100
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-java@freebsd.org
Subject:   Re: openjdk 7 error in socket
Message-ID:  <op.unyfdqtu8527sy@82-170-177-25.ip.telfort.nl>
In-Reply-To: <200901161418.17792.lists@intricatesoftware.com>
References:  <op.unuon3hf8527sy@82-170-177-25.ip.telfort.nl> <op.unureixg8527sy@82-170-177-25.ip.telfort.nl> <200901161418.17792.lists@intricatesoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Jan 2009 20:18:17 +0100, Kurt Miller  
<lists@intricatesoftware.com> wrote:

> 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
>> <ronald-freebsd8@klop.yi.org> 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)
>> <removed part of the stacktrace>
>> >
>> > 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

I already found this in the jdk16 port and found it is usable in openjdk7  
also.
But still thanks for the info. Openjdk7 runs very well until now. If I  
experience problems I will let the mailinglist know.

Ronald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.unyfdqtu8527sy>