← Back to team overview

openjdk team mailing list archive

[Bug 1822839] [NEW] LibreOffice doesn't detect JVM because of unexpected java.vendor property value

 

Public bug reported:

libreoffice autopkgtests are failing on disco with openjdk
11.0.3+4-2ubuntu1.

The likely culprit is that change:

+openjdk-lts (11.0.3+4-2ubuntu1) disco; urgency=medium
+
+  * Sync packages with 11.0.3+4-2:
+    [ Matthias Klose ]
+    - Configure with vendor flags.

Indeed with version 11.0.3+4-1ubuntu1:

    $ java -XshowSettings -version 2>&1 | grep "java.vendor "
        java.vendor = Oracle Corporation

And with version 11.0.3+4-2ubuntu1:

    $ java -XshowSettings -version 2>&1 | grep "java.vendor "
        java.vendor = Private Build

Looking at the code in Libreoffice that looks for a JVM, it validates
the vendor against a hardcoded list of known vendors:
https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx?h=libreoffice-6-2#n33

Not sure what the purpose of that upstream code is, but this means the
new openjdk-11 build in Ubuntu breaks it.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: openjdk-11-jre-headless 11.0.3+4-2ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1
Uname: Linux 5.0.0-8-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu23
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr  2 17:06:25 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-07-02 (1003 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: openjdk-lts
UpgradeStatus: Upgraded to disco on 2019-03-16 (16 days ago)

** Affects: df-libreoffice
     Importance: Unknown
         Status: Unknown

** Affects: libreoffice (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-lts (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug disco

** Description changed:

  libreoffice autopkgtests are failing on disco with openjdk
  11.0.3+4-2ubuntu1.
  
  The likely culprit is that change:
  
  +openjdk-lts (11.0.3+4-2ubuntu1) disco; urgency=medium
  +
  +  * Sync packages with 11.0.3+4-2:
  +    [ Matthias Klose ]
  +    - Configure with vendor flags.
  
  Indeed with version 11.0.3+4-1ubuntu1:
  
-     $ java -XshowSettings -version 2>&1 | grep "java.vendor "
-         java.vendor = Oracle Corporation
+     $ java -XshowSettings -version 2>&1 | grep "java.vendor "
+         java.vendor = Oracle Corporation
  
  And with version 11.0.3+4-2ubuntu1:
  
-     $ java -XshowSettings -version 2>&1 | grep "java.vendor "
-         java.vendor = Private Build
+     $ java -XshowSettings -version 2>&1 | grep "java.vendor "
+         java.vendor = Private Build
  
  Looking at the code in Libreoffice that looks for a JVM, it validates
  the vendor against a hardcoded list of known vendors:
  https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx?h=libreoffice-6-2#n33
  
  Not sure what the purpose of that upstream code is, but this means the
  new openjdk-11 build in Ubuntu breaks it.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
- Package: openjdk-11-jre-headless 11.0.3+4-1ubuntu1
+ Package: openjdk-11-jre-headless 11.0.3+4-2ubuntu1
  ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1
  Uname: Linux 5.0.0-8-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu23
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Apr  2 17:06:25 2019
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2016-07-02 (1003 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
  SourcePackage: openjdk-lts
  UpgradeStatus: Upgraded to disco on 2019-03-16 (16 days ago)

** Also affects: libreoffice (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-lts in Ubuntu.
https://bugs.launchpad.net/bugs/1822839

Title:
  LibreOffice doesn't detect JVM because of unexpected java.vendor
  property value

Status in LibreOffice:
  Unknown
Status in libreoffice package in Ubuntu:
  New
Status in openjdk-lts package in Ubuntu:
  New

Bug description:
  libreoffice autopkgtests are failing on disco with openjdk
  11.0.3+4-2ubuntu1.

  The likely culprit is that change:

  +openjdk-lts (11.0.3+4-2ubuntu1) disco; urgency=medium
  +
  +  * Sync packages with 11.0.3+4-2:
  +    [ Matthias Klose ]
  +    - Configure with vendor flags.

  Indeed with version 11.0.3+4-1ubuntu1:

      $ java -XshowSettings -version 2>&1 | grep "java.vendor "
          java.vendor = Oracle Corporation

  And with version 11.0.3+4-2ubuntu1:

      $ java -XshowSettings -version 2>&1 | grep "java.vendor "
          java.vendor = Private Build

  Looking at the code in Libreoffice that looks for a JVM, it validates
  the vendor against a hardcoded list of known vendors:
  https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx?h=libreoffice-6-2#n33

  Not sure what the purpose of that upstream code is, but this means the
  new openjdk-11 build in Ubuntu breaks it.

  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: openjdk-11-jre-headless 11.0.3+4-2ubuntu1
  ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1
  Uname: Linux 5.0.0-8-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu23
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Apr  2 17:06:25 2019
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2016-07-02 (1003 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
  SourcePackage: openjdk-lts
  UpgradeStatus: Upgraded to disco on 2019-03-16 (16 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1822839/+subscriptions


Follow ups