[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#562954: java-common: All java networking ignores ipv4 interfaces



Package: java-common
Version: 0.34
Severity: grave
Justification: renders package unusable


Since my last upgrade of java, all java applications that use networking
stopped working. After some research I found that this is because of
a change that makes java start to use ipv6 instead of ipv4.

I have to following interfaces (ifconfig):

br0       Link encap:Ethernet  HWaddr 00:1a:92:3a:4a:c1  
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:92ff:fe3a:4ac1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2656682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1257786 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1473927102 (1.3 GiB)  TX bytes:406009708 (387.2 MiB)

eth1      Link encap:Ethernet  HWaddr 00:1a:92:3a:4a:c1  
          inet6 addr: fe80::21a:92ff:fe3a:4ac1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2656682 errors:0 dropped:1798 overruns:0 frame:0
          TX packets:1257827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1474631718 (1.3 GiB)  TX bytes:406015654 (387.2 MiB)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:350463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:350463 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:42943362 (40.9 MiB)  TX bytes:42943362 (40.9 MiB)

And the following routing info (route):

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 br0
default         ansset.localdom 0.0.0.0         UG    0      0        0 br0


Starting 'java' with -Djava.net.preferIPv4Stack=true solves the problem
for that particular application, but not entirely because some
applications invoke java again themselves, ie a restart or subprocess.
It's not nice to have to edit scripts of packages to get them to
work again (scripts are not configuration files).

Basically, all java networking got broken by this change (unless you
have and use ipv6 interfaces).

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

java-common depends on no packages.

java-common recommends no packages.

Versions of packages java-common suggests:
pn  default-jre                   <none>     (no description available)
ii  equivs                        2.0.7-0.1  Circumvent Debian package dependen

-- no debconf information



Reply to: