PdfSam does not start - FATAL GuiClient Error (java.lang.NoClassDefFoundError: com/jgoodies/common/base/SystemUtils)

Bug #1167469 reported by theghost
124
This bug affects 27 people
Affects Status Importance Assigned to Milestone
pdfsam (Debian)
Fix Released
Unknown
pdfsam (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

PdfSam of Ubuntu repos (v.1.1.4) seems outdated. The upstream version (2.2.2) works fine instead.

Traceback:

19:21:16,751 INFO JMainFrame Starting PDF Split and Merge basic Ver. 1.1.4
19:21:16,840 INFO Configuration Loading configuration..
19:21:16,921 INFO Configuration Getting language...
19:21:17,013 INFO Configuration Setting look and feel...
19:21:17,036 FATAL GuiClient Error:
java.lang.NoClassDefFoundError: com/jgoodies/common/base/SystemUtils
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:137)
 at org.pdfsam.guiclient.utils.ThemeUtility.setTheme(ThemeUtility.java:160)
 at org.pdfsam.guiclient.configuration.Configuration.setLookAndFeel(Configuration.java:192)
 at org.pdfsam.guiclient.configuration.Configuration.init(Configuration.java:169)
 at org.pdfsam.guiclient.configuration.Configuration.<init>(Configuration.java:54)
 at org.pdfsam.guiclient.configuration.Configuration.getInstance(Configuration.java:59)
 at org.pdfsam.guiclient.gui.frames.JMainFrame.<init>(JMainFrame.java:90)
 at org.pdfsam.guiclient.GuiClient.main(GuiClient.java:61)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.common.base.SystemUtils
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 ... 20 more

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pdfsam 1.1.4-2
ProcVersionSignature: Ubuntu 3.8.0-17.27-generic 3.8.6
Uname: Linux 3.8.0-17-generic x86_64
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Wed Apr 10 19:23:04 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-03-14 (26 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130314)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: pdfsam
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
theghost (theghost) wrote :
tags: added: upgrade-software-version
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in pdfsam (Ubuntu):
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Also affects Ubuntu Saucy.

I tried to check if this bug also happens in Debian Sid, but the package is currently not installable there, due to some dependency being mising.

tags: added: saucy
summary: PdfSam does not start - FATAL GuiClient Error
+ (java.lang.NoClassDefFoundError: com/jgoodies/common/base/SystemUtils)
Revision history for this message
Felipe Castillo (fcastillo.ec) wrote :

Downloading the .zip file from the pdfsam webpage gets a new copy that runs without any problem on Ubuntu raring.
Now, if somebody could manage to package this linux version zip into a deb, that'll be great!

Revision history for this message
Bzzz (da-bzzz) wrote :

Not exactly. I just downloaded 2.2.2 and extracted it to /usr/share/pdfsam.

First of all, it doesn't start, as I didn't wipe the directory before that. So there are two pdfsam-*.jar and the pdfsam link doesn't know which one to open. Deleted the older 1.x one:

New error is:

17:40:26,217 INFO Starting PDF Split and Merge basic Ver. 2.2.2
17:40:26,641 INFO Loading configuration..
17:40:26,644 FATAL Error loading configuration.
org.pdfsam.guiclient.exceptions.ConfigurationException: Unable to create /home/bzzz/.pdfsam
 at org.pdfsam.guiclient.configuration.services.xml.XmlConfigurationService.searchConfigurationFile(XmlConfigurationService.java:275)
 at org.pdfsam.guiclient.configuration.services.xml.XmlConfigurationService.getConfigurationXmlFile(XmlConfigurationService.java:237)
 at org.pdfsam.guiclient.configuration.services.xml.XmlConfigurationService.initializeService(XmlConfigurationService.java:87)
 at org.pdfsam.guiclient.configuration.services.xml.XmlConfigurationService.<init>(XmlConfigurationService.java:75)
 at org.pdfsam.guiclient.configuration.services.ConfigurationServiceLocator.getConfigurationService(ConfigurationServiceLocator.java:38)
 at org.pdfsam.guiclient.configuration.Configuration.initialize(Configuration.java:70)
 at org.pdfsam.guiclient.configuration.Configuration.<init>(Configuration.java:51)
 at org.pdfsam.guiclient.configuration.Configuration.getInstance(Configuration.java:60)
 at org.pdfsam.guiclient.gui.frames.JMainFrame.initialize(JMainFrame.java:122)
 at org.pdfsam.guiclient.gui.frames.JMainFrame.<init>(JMainFrame.java:96)
 at org.pdfsam.guiclient.GuiClient.main(GuiClient.java:76)
17:40:26,653 FATAL Error:
java.lang.NullPointerException
 at org.pdfsam.guiclient.configuration.Configuration.getI18nResourceBundle(Configuration.java:111)
 at org.pdfsam.guiclient.gui.frames.JMainFrame.initialize(JMainFrame.java:221)
 at org.pdfsam.guiclient.gui.frames.JMainFrame.<init>(JMainFrame.java:96)
 at org.pdfsam.guiclient.GuiClient.main(GuiClient.java:76)

Deleting the ~/.pdfsam/config.xml and their dir worked (permissions were ok!), pdfsam recreated that folder and uses pdfsam-config.xml now.

However, all that stuff may interfere with an updated .deb in the future. We have a package system, why don't we use it :/

Revision history for this message
Gerhard Dickescheid (gerhard-dickescheid) wrote :

To solve the NoClassDefFoundError of the version of pdfsam installed by package manager, just install the addional jgoogies-common java libary with:
sudo apt-get-install libjgoodies-common-java

cd in pdfsam lib dircetory with
cd /usr/share/pdfsam/lib

and add a symlink with
sudo ln -s ../../java/jgoodies-common.jar

the new jar is automatically included in the java classpath if starting pdfsam again.

Revision history for this message
Washington Indacochea Delgado (wachin-id-h) wrote :

Working fine, I download the source pdfsam-2.2.2-out.zip, and execute in command line:

java -jar pdfsam-2.2.2.jar

Working fine for me in UbuntuStudio 13.04, thanks Felipe Castillo, I from Ecuador

Revision history for this message
Don Myers (donmyers) wrote :

Gerhard's solution worked perfectly for me!!!!!! Thank you Gehard!!!!!!

Changed in pdfsam (Debian):
status: Unknown → New
Revision history for this message
Aditya V (kroq-gar78) wrote :

Here's a debdiff for raring (should work for all versions using 1.1.4-2).

Changed in pdfsam (Ubuntu):
assignee: nobody → kroq-gar78 (kroq-gar78)
status: Confirmed → In Progress
Revision history for this message
Aditya V (kroq-gar78) wrote :

Sorry, the last debdiff didn't have the Launchpad bug number in it. Here it is with the bug number.

Revision history for this message
Aditya V (kroq-gar78) wrote :

I'm sorry. I forgot to format it correctly as a diff file. Third time's a charm...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff (with bug number)" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
James Page (james-page) wrote :

Hi kroq-gar78

Thanks for preparing this patch; I took a look and currently I can't reproduce this issue on Saucy; pdfsam works just fine.

I think it was fixed by this update:

libjgoodies-looks-java (2.5.2-3) unstable; urgency=low

  * Add javahelper.mk to d/rules.
  * Add jgoodies-common to the manifest via classpath file.
    (Closes: #709002)

 -- tony mancill <email address hidden> Sun, 02 Jun 2013 08:36:43 -0700

Which would fixup the loading of the jgoodies-common jar file in a different way.

Marking this bug as Invalid; please re-open if you think this is not true.

Changed in pdfsam (Ubuntu):
status: In Progress → Invalid
Revision history for this message
PhilippeSeidel (pagin) wrote :

I had this bug on ubuntu 13.04, pdfsam 1.1.4-2. The bug could be that there is no dependency to the goodies library. However, I installed it and it still does not work.

Changed in pdfsam (Ubuntu):
status: Invalid → In Progress
Revision history for this message
müzso (bit2) wrote :

I could reproduce the issue on 13.04 and Gerhard's workaround worked for me too.

Revision history for this message
müzso (bit2) wrote :

The pdfsam version I have is: 1.1.4-2

Aditya V (kroq-gar78)
Changed in pdfsam (Ubuntu):
assignee: kroq-gar78 (kroq-gar78) → nobody
status: In Progress → Invalid
Changed in pdfsam (Debian):
status: New → Fix Released
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.