Bug 158854 - When Opening any Base Report in Linux, I get a Runtime Error: [jni_uno bridge error] UNO calling Java method execute: non-UNO exception occurred: java.lang.NoClassDefFoundError:
Summary: When Opening any Base Report in Linux, I get a Runtime Error: [jni_uno bridg...
Status: RESOLVED DUPLICATE of bug 145260
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-25 02:16 UTC by B Mikowski
Modified: 2024-01-08 09:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description B Mikowski 2023-12-25 02:16:23 UTC
Description:
I tried opening several different reports, but all have the same error: 

[jni_uno bridge error] UNO calling Java method execute: non-UNO exception occurred: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
java stack trace:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.pentaho.reporting.libraries.base.boot.AbstractBoot.<clinit>(AbstractBoot.java:55)
	at org.libreoffice.report.pentaho.PentahoReportEngine.<init>(PentahoReportEngine.java:34)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.createReportJob(SOReportJobFactory.java:352)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.execute(SOReportJobFactory.java:236)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
	at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:904)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
	... 4 more
 at /home/abuild/rpmbuild/BUILD/libreoffice-7.6.2.1/bridges/source/jni_uno/jni_uno2java.cxx:783

Using OpenSuse 15.5. 
LibreOffice Base v7.6.2.1
Tried going back to a prior version of v7.5.4 issue persists. 
Ensured that a JRE was installed and set up properly. Java11-OpenJDK 11.0.21. Java path was defined in the options advance section.

Steps to Reproduce:
1. Used a Odb file that previously worked on 7.2.1
2. Tested to ensure that the reports opened on 7.5.92 in Windows10.  Works fine.
3. Tried opening report on OpenSuse 15.5 7.5.4 and 7.6.2.1

Actual Results:
Error pops up in middle of screen: 

[jni_uno bridge error] UNO calling Java method execute: non-UNO exception occurred: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
java stack trace:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.pentaho.reporting.libraries.base.boot.AbstractBoot.<clinit>(AbstractBoot.java:55)
	at org.libreoffice.report.pentaho.PentahoReportEngine.<init>(PentahoReportEngine.java:34)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.createReportJob(SOReportJobFactory.java:352)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.execute(SOReportJobFactory.java:236)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
	at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:904)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
	... 4 more
 at /home/abuild/rpmbuild/BUILD/libreoffice-7.6.2.1/bridges/source/jni_uno/jni_uno2java.cxx:783

Expected Results:
Report should display in a separate window, with appropriate data and ability to print.


Reproducible: Always


User Profile Reset: No

Additional Info:
I might be able to try additional versions if OpenSuse 15.5 offers them in a repository.
Comment 1 Raúl Osuna 2023-12-29 16:34:57 UTC
Can you attach an example file? I'm using openSUSE Tumbleweed and can give it a try.
Comment 2 Robert Großkopf 2023-12-30 12:08:53 UTC
Seems you are using the version from OpenSUSE, not the version directly packed by Libre Office. What you report is a bug of the packages in OpenSUSE. Also Ubuntu will produce the same buggy behavior.

No problem to execute reports with OpenSUSE (15.4) and packages from LibreOffice here.

Create a folder for the packages of LO. Download main package, language package and help package. Unzip the packages to get the rpms inside this packes. Move all this rpms to the new created folder. 
Then open Yast and add this folder as another installation source.
Choose all *.rpms inside this folder and install. Many warnings will appear, because Yast misses signing, but you could ignore all this warning.

Alternative without using Yast and installing as user: Create a folder "install" in the new folder for the *.rpm-packages. Open Install and start konsole (terminal). Execute

for i in ../*.rpm; do rpm2cpio $i | cpio -id; done

and you will get the whole installation as normal user. Have installed about 30 different versions of LO this way here for testing.
Comment 3 Stéphane Guillou (stragu) 2024-01-08 09:43:51 UTC
Let's close a duplicate of bug 145260 then.
Thanks everyone.

*** This bug has been marked as a duplicate of bug 145260 ***