Missing field preferIPv6Address in openjdk 10 code

Bug #1792792 reported by Sergio Callegari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-lts (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Seen trying to run the jitsi sip softphone on ubuntu bionic.

The code complains:

Exception in thread "main" java.lang.NoSuchFieldError: preferIPv6Address
        at java.base/java.net.InetAddress.init(Native Method)
        at java.base/java.net.InetAddress.<clinit>(InetAddress.java:337)
        at java.base/java.net.NetworkInterface.init(Native Method)
        at java.base/java.net.NetworkInterface.<clinit>(NetworkInterface.java:68)
        at net.java.sip.communicator.util.launchutils.SipCommunicatorLock.findLocalAddress(SipCommunicatorLock.java:513)
        at net.java.sip.communicator.util.launchutils.SipCommunicatorLock.readLockFile(SipCommunicatorLock.java:413)
        at net.java.sip.communicator.util.launchutils.SipCommunicatorLock.readLockFileRetrying(SipCommunicatorLock.java:358)
        at net.java.sip.communicator.util.launchutils.SipCommunicatorLock.tryLock(SipCommunicatorLock.java:154)
        at net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:139)

The jitsi developers observe that this is not an issue with jitsi, rather with openjdk:

"This particular problem is a bug in Java itself rather than in Jitsi. The native InetAddress code tries to access a field declared in Java, preferIPv6Address.
It's not something we can fix. We're only using documented and supported API here."

And recommend reporting the issue to the distribution.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: openjdk-11-jre 10.0.2+13-1ubuntu0.18.04.2
ProcVersionSignature: Ubuntu 4.15.0-34.37-generic 4.15.18
Uname: Linux 4.15.0-34-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Sep 16 15:10:23 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-12-12 (1738 days ago)
InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: openjdk-lts
UpgradeStatus: Upgraded to bionic on 2018-06-08 (99 days ago)

Revision history for this message
Sergio Callegari (callegar) wrote :
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Could you please provide additional information on how to reproduce this bug and the environment you are running it in?

For jitsi:
- where are you getting it from?
- how are you running it?

For the environment:
- additional information on your network; everything from ip, networks, routes, dns, and interfaces that you can provide (output from "ip -o a", "ip -o l", "ip -o r", "systemd-resolve --status")
- output of "java -XshowSettings -version"

For now I'm setting the status as Incomplete. As soon as you add the above information feel free to set it back to New.

Changed in openjdk-lts (Ubuntu):
status: New → Incomplete
Revision history for this message
Sergio Callegari (callegar) wrote :

jitsi available at jitsi.org. Provides deb repo for bionic.

See https://desktop.jitsi.org/Main/DebianRepository
or https://desktop.jitsi.org/Main/DebianNightlyRepository

rest will follow asap, but not really relevant. Issue does not seem to depend on network config, I see it on all machines and has already been diagnosed by the jitsi developers.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openjdk-lts (Ubuntu) because there has been no activity for 60 days.]

Changed in openjdk-lts (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.