Package: openjdk-6-jre Version: 6b17~pre3-1 Severity: normal
The default value of /proc/sys/net/ipv6/bindv6only has recently changed from 0 to 1 which has broken most Java network related code (both in sun-java and OpenJDK) For example creating a client socket will fail (before even connecting it) when bindv6only=1. Compile and run this test case. ----- start of Test.java public class Test { public static void main(String args[]) { try { new java.net.Socket("localhost",22); } catch (Exception e) { e.printStackTrace(); } } } ----- end of Test.java With bindv6only at default value of 1 $ java Test java.net.SocketException: Network is unreachable 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.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at Test.main(Test.java:4) $ Change the value of bindv6only back to 0 # echo 0 > /proc/sys/net/ipv6/bindv6only and now $ java Test $ runs without error. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages openjdk-6-jre depends on: ii dpkg 1.15.5.5 Debian package management system ii libaccess-bridge-java- 1.26.2-3 Java Access Bridge for GNOME (jni ii libasound2 1.0.21a-1 shared library for ALSA applicatio ii libc6 2.10.2-2 GNU C Library: Shared libraries ii libgif4 4.1.6-8 library for GIF images (library) ii libjpeg62 6b-15 The Independent JPEG Group's JPEG ii libpng12-0 1.2.41-1 PNG library - runtime ii libpulse0 0.9.21-1 PulseAudio client libraries ii libx11-6 2:1.3.2-1 X11 client-side library ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar ii libxi6 2:1.2.1-2 X11 Input extension library ii libxrender1 1:0.9.5-1 X Rendering Extension client libra ii libxtst6 2:1.0.3-1 X11 Testing -- Resource extension ii openjdk-6-jre-headless 6b17~pre3-1 OpenJDK Java runtime, using Hotspo ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime openjdk-6-jre recommends no packages. Versions of packages openjdk-6-jre suggests: pn icedtea6-plugin <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org