[Libreoffice-bugs] [Bug 140015] New: CONFIGURATION: JNI exception occurred with Zotero OpenOffice Integration

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 30 09:42:52 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140015

            Bug ID: 140015
           Summary: CONFIGURATION: JNI exception occurred with Zotero
                    OpenOffice Integration
           Product: LibreOffice
           Version: 6.4.6.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: diarmuid at obriain.com

Description:
Version: 6.4.6.2
Build ID: 1:6.4.6-0ubuntu0.20.04.1
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-GB (en_IE.UTF-8); UI-Language: en-GB

When I try to integrate Zotero with LibreOffice using the
"Zotero_OpenOffice_Integration.oxt" file supplied by Zotero I receive:

-------------------------------------------------------------------------- 
(com.sun.star.uno.RuntimeException) {{ Message = "JNI exception occurred”,
Context = (com.sun.star.uno.Xinterface) @7F1bcc0017F8
(ImplementationName = "com.sun.star.comp.stoc. JavaVirtualMachine") } }
-------------------------------------------------------------------------- 

I raised a question on the Zotero forum and received the following answer:

"This is a problem with LibreOffice not being able to use your JRE and not
specific to Zotero. You should try different versions of Java. Make sure
LibreOffice sees them and they are selected when testing."

So I tried all of the available JRE's available to my Operating System 

System:
  Host: TP-P1-Gen-2 Kernel: 5.4.0-65-generic x86_64 bits: 64 compiler: gcc 
  v: 9.3.0 Desktop: Cinnamon 4.8.6 Distro: Linux Mint 20.1 Ulyssa 
  base: Ubuntu 20.04 focal 

In the case of OpenJDK I have tried all the available versions.

~$ apt search openjdk| grep -e '-jre '
i   openjdk-11-jre             - OpenJDK Java runtime, using Hotspot JIT        
i   openjdk-13-jre             - OpenJDK Java runtime, using Hotspot JIT        
i   openjdk-14-jre             - OpenJDK Java runtime, using Hotspot JIT        
i   openjdk-8-jre              - OpenJDK Java runtime, using Hotspot JIT   

These equate to the following in LO.
Ubuntu          11.0.9.1
Private Build   13.0.4
Private Build   14.0.2
Private Build   1.8.0_275

Running the "Zotero_OpenOffice_Integration.oxt" file in each case results in me
initially getting the information box:

-----------------------------------------------------------------------------------
You are about to install version 5.0.23 of the extension ‘Zotero
LibreOffice Integration’.
That version is already installed.
Click 'OK' to replace the installed extension.
Click ‘Cancel’ to stop the installation.
-----------------------------------------------------------------------------------

and when I do click connect I receive the following message:

-------------------------------------------------------------------------------------------------------
(com.sun.star.uno.RuntimeException) {{ Message = "JNI exception occurred”,
Context = (com.sun.star.uno.Xinterface) @7F1bcc0017F8
(ImplementationName = "com.sun.star.comp.stoc. JavaVirtualMachine") } }
-------------------------------------------------------------------------------------------------------

In the case of Oracle JREs, they all appear to be linked to "oracle-java15-jre"
and this fails in the same way as the OpenJDK versions. See my attempt to
install "oracle-java12-jre". There appears to have been some sort of license
change and Oracle don't readily give access to earlier versions. 

~$ sudo apt install oracle-java12-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'oracle-java15-installer' instead of 'oracle-java12-jre'
oracle-java15-installer is already the newest version
(15.0.2-1~linuxuprising0).
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-62 linux-headers-5.4.0-62-generic
  linux-image-5.4.0-62-generic linux-modules-5.4.0-62-generic
  linux-modules-extra-5.4.0-62-generic python3-dbus.mainloop.pyqt5
  python3-notify2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

NB: I have tried with both Open GL enabled and Open GL disabled, it makes no
difference, the outcome is the same.

Steps to Reproduce:
1. Run "Zotero_OpenOffice_Integration.oxt" (from Zotero application)
2. Click OK to info box "You are about to install version 5.0.23 of the
extension ‘Zotero"
3. "JNI exception occurred" error will appear.

Actual Results:
(com.sun.star.uno.RuntimeException) {{ Message = "JNI exception occurred”,
Context = (com.sun.star.uno.Xinterface) @7F1bcc0017F8
(ImplementationName = "com.sun.star.comp.stoc. JavaVirtualMachine") } }

Expected Results:
Zotero icons appear in Writer. 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.4.6.2
Build ID: 1:6.4.6-0ubuntu0.20.04.1
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-GB (en_IE.UTF-8); UI-Language: en-GB
Calc: CL

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210130/9e7f0ce6/attachment.htm>


More information about the Libreoffice-bugs mailing list