#1000298 openjdk-11-jre-headless: network operations not working because of ipv6

Package:
openjdk-11-jre-headless
Source:
openjdk-11
Description:
OpenJDK Java runtime, using Hotspot JIT (headless)
Submitter:
Richard Z
Date:
2021-11-21 01:57:04 UTC
Severity:
important
#1000298#5
Date:
2021-11-21 01:54:44 UTC
From:
To:
Dear Maintainer,


one way to reporduce on my system is to launch "josm" or other software that
uses
network. Josm will start but all network operation fails on my system.

Using strace I noticed that the program hangs when connecting to ipv6 adresses.
For some reason ipv6 does not seem to work here (telneting the ipv6 adresss
fails as well)) but no
other program that I tried had any problem in daily operation.

Easy workaround is
export _JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true



Richard