Re: [OxLUG] Debian Sid and Java #fail

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Tim Pizey
Date:  
To: Oxfordshire Linux User Group Discussion List
Subject: Re: [OxLUG] Debian Sid and Java #fail
On Thursday 07 January 2010 17:17:10 Tim Pizey wrote:
> Hi,
>
> If you use java on debian sid this will probably effect you.
>
> Note that you need to BOTH set ipv6 off and specify ipv4 preference
> in ALL you java invocations with :
> -Djava.net.preferIPv4Stack=true
>


Umm, actually no, just restart networking.

Tim



> cheers
> Tim
>
> from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560142#35
>
>
> From: Yusuf iskenderoglu <>
> To:
> Subject: The cause of ipv6 Problems with java
> Date: Wed, 09 Dec 2009 15:28:50 +0100
>
> Hello,
>
> The update to netbase installs a new sysctl option to the system:
>
> enygma@whitelight:~$ cat /etc/sysctl.d/bindv6only.conf
> # This sysctl sets the default value of the IPV6_V6ONLY socket option.
> #
> # When disabled, IPv6 sockets will also be able to send and receive IPv4
> # traffic with addresses in the form ::ffff:192.0.2.1 and daemons
> listening
> # on IPv6 sockets will also accept IPv4 connections.
> #
> # When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
> # connections must open two listening sockets.
> # This is the default behaviour of all modern operating systems.
>
> net.ipv6.bindv6only = 1
>
> ----
>
> This option makes it not possible to use the ::ffff::ip style mapped
> addresses anymore, however, this is the default of the java virtual
> machine, unless the specified define is used to suppress ipv6.
>
> Setting the sysctl option to 0 makes java behave normal again.
>
> Regards,
> Yusuf.
>
>
>
>


--
We are in dialogue.