libreoffice writer extension manager failed on installing "Language Tool" extension with java exception

Bug #1213130 reported by Sasa Paporovic
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The libreoffice writer(4.0.2) extension manager failed with a java exception on installing the grammatic checker extension "Language Tool" version 2.2, which is available from:

http://extensions.libreoffice.org/extension-center/languagetool

Steps to reproduce(tested two times):

1.Download "Language Tool" 2.2 from the URL given above.
2.Start libreoffice writer
2.Use menu -> Extras -> Extension manager... > Add extension
3.Choose the Language Toll 2.2 .oxt
4.Try to install it and see the exception text in a pop up

Additional:

A scrennshot will be added.

Additional2:

The openjdk7u25 is as default installed.

Additional3:

The only other additional extension is "Lightproof grammer checker 0.4.2 (english)" which was installed from the official ubuntu repositories through software center.

The exception text itself:

(com.sun.star.uno.RuntimeException) { { Message = "[jni_uno bridge error] UNO calling Java method writeRegistryInfo: non-UNO exception occurred: java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000ajava stack trace:\X000ajava.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000a\X0009at java.lang.ClassLoader.defineClass1(Native Method)\X000a\X0009at java.lang.ClassLoader.defineClass(ClassLoader.java:788)\X000a\X0009at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\X000a\X0009at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)\X000a\X0009at java.net.URLClassLoader.access$100(URLClassLoader.java:71)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\X000a\X0009at java.security.AccessController.doPrivileged(Native Method)\X000a\X0009at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:411)\X000a\X0009at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:787)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\X000a\X0009at com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:55)\X000a\X0009at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:399)\X000aCaused by: java.lang.ClassNotFoundException: com.sun.star.task.XJobExecutor\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\X000a\X0009at java.security.AccessController.doPrivileged(Native Method)\X000a\X0009at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\X000a\X0009... 15 more\X000a", Context = (com.sun.star.uno.XInterface) @0 } }

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: libreoffice-core 1:4.0.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-28.41-generic 3.8.13.5
Uname: Linux 3.8.0-28-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Fri Aug 16 16:40:16 2013
ExecutablePath: /usr/lib/libreoffice/program/soffice.bin
InstallationDate: Installed on 2013-01-13 (215 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: libreoffice
UpgradeStatus: Upgraded to raring on 2013-04-18 (119 days ago)

Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Revision history for this message
Daniel Naber (misc2006) wrote :

Have you checked the common problems and their solutions at http://languagetool.org/issues/?

Revision history for this message
penalvch (penalvch) wrote :

Sasa Paporovic, thank you for reporting this and helping make Ubuntu better. However, your crash report is missing. Please follow these instructions to have apport report a new bug about your crash that can be dealt with by the automatic retracer. First, execute at a terminal:
cd /var/crash && sudo rm * ; sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install libreoffice-dbg uno-libs3-dbg ure-dbg && sudo service apport start force_start=1

If you are running the Ubuntu Stable Release you might need to enable apport in /etc/default/apport and restart.

Now reproduce the crash, then open your file manager, navigate to your /var/crash directory and open the crash report you wish to submit.
If this fails you will have to open a terminal and file your report with 'ubuntu-bug /var/crash/_my_crash_report.crash' where _my_crash_report.crash is the crash you would like to report. If you get an error that you aren't allowed to access this report you will have to file it with 'sudo ubuntu-bug /var/crash/_my_crash_report.crash'. If you run the command against the crash report and it does nothing, you may be affected by https://bugs.launchpad.net/ubuntu/+source/apport/+bug/994921 . In order to WORKAROUND this, one would need to open the following file via a command line:
gksudo gedit /etc/apport/crashdb.conf

and comment out the line:
'problem_types': ['Bug', 'Package'],

by changing it to:
# 'problem_types': ['Bug', 'Package'],

Save, close, and try to file the crash report again via:
ubuntu-bug /var/crash/_my_crash_report.crash

Please follow https://wiki.ubuntu.com/LibreOfficeBugWrangling when you file this crash report so the necessary information is provided.

I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently.

Thank you for your understanding.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

Changed in libreoffice (Ubuntu):
status: New → Invalid
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

Sry Christopher, but that missed completetly what happend.

apport do not detect the problem and the

var/crash/

folder is already completly emty. A recreation do not trigger any apport action.

Apport was and is already enabled in its configuration files. So a forced start is not necessary at all and a missing crash report is not caused by a disabled apport.

The dbg files is a point I can do, but the stacktrace libreoffice brings up seems to be complete already. I performing this now, but to not expect that the stacktrace get a improving from this.

greetings

 melchiaros

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

As expected and as I can see at a glance, the stacktrace keeps the same. Sry, Christopher, but the given procedure was uselaess.

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

The stacktrace with dbg packages from comment #4 installed:

(com.sun.star.uno.RuntimeException) { { Message = "[jni_uno bridge error] UNO calling Java method writeRegistryInfo: non-UNO exception occurred: java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000ajava stack trace:\X000ajava.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000a\X0009at java.lang.ClassLoader.defineClass1(Native Method)\X000a\X0009at java.lang.ClassLoader.defineClass(ClassLoader.java:788)\X000a\X0009at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\X000a\X0009at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)\X000a\X0009at java.net.URLClassLoader.access$100(URLClassLoader.java:71)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\X000a\X0009at java.security.AccessController.doPrivileged(Native Method)\X000a\X0009at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:411)\X000a\X0009at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:787)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\X000a\X0009at com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:55)\X000a\X0009at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:399)\X000aCaused by: java.lang.ClassNotFoundException: com.sun.star.task.XJobExecutor\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\X000a\X0009at java.security.AccessController.doPrivileged(Native Method)\X000a\X0009at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\X000a\X0009... 15 more\X000a", Context = (com.sun.star.uno.XInterface) @0 } }

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

@ Daniel

I have followed the link you give. The possible conflicting with lightproof is it not. I have deinstalled lightproof and the exception still occures.

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

From the stacktrace it seems to be more the problem that libreoffice or the extension Language tool is not able to find the jre itself.

Changed in libreoffice (Ubuntu):
status: Invalid → New
Revision history for this message
Daniel Naber (misc2006) wrote :

Did you install the libreoffice-java-common package, as that page suggests?

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

I have found the problem.

Oh, just the same as you have just wrote Daniel.

It was the missing libreoffice-java-common package that is needed to install Language Tool with success.

The problem was identified on:

http://languagetool.org/issues/

with:

"
On Ubuntu, install the libreoffice-java-common or openoffice.org-java-common package. One problem solved by this is getting a long error message with "NoClassDefFoundError" during installation. See this blog posting for details.
"

the stacktrace on

http://languagetool.org/images/class_not_found.png

was the same.

So, after installing libreoffice-java-common package all works fine.

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

Mhh, could we learn something from this?

The problem is there since Ubuntu hardy following the troubleshooting page Daniel give here.

Is it possible to give the ubuntu version of libreoffice an adaption? It is neasty time invest to get arround the problem for a user.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Expecting Java extension to work without Java is unreasonable. Shipping libreoffice-java-common in the default isnt an option => Invalid.

Note that "sudo apt install libreoffice" installs libreoffice-java-common just fine.

Changed in libreoffice (Ubuntu):
status: Confirmed → Won't Fix
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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