openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #04854
Bug#560056: net.ipv6.bindv6only=1 breaks java networking
Package: openjdk-6-jdk
Version: 6b16-1.6.1-2
Severity: important
Netbase has recently introduced the sysctl-setting
net.ipv6.bindv6only=1 in /etc/sysctl.d/bindv6only.conf and this setting
will probably be the default in squeeze.
This setting breaks networking in java, and any traffic will for openjdk
always result in a "java.net.NoRouteToHostException: Network is
unreachable".
It should probably be an rc-bug, but setting as important for now, since
users can easily rectify the issue.
Quick fix for users hit by this:
sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \
/etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart
This is present in both Sun's Java6 and OpenJDK6.
cheers,
Heikki
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages openjdk-6-jdk depends on:
ii dpkg 1.15.5.4 Debian package management system
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libgcc1 1:4.4.2-3 GCC support library
ii libx11-6 2:1.3.2-1 X11 client-side library
ii openjdk-6-jre 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspo
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages openjdk-6-jdk recommends:
pn libxt-dev <none> (no description available)
Versions of packages openjdk-6-jdk suggests:
pn openjdk-6-demo <none> (no description available)
pn openjdk-6-source <none> (no description available)
pn visualvm <none> (no description available)
-- no debconf information