Bug 1043200

Summary: ListDBus has incorrect CLASSPATH
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: dbus-javaAssignee: Omair Majid <omajid>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 20CC: omajid, thomas.mey
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dbus-java-2.7-14.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 05:56:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Green 2013-12-14 21:38:25 UTC
Description of problem:
$ ListDBus 
Exception in thread "main" java.lang.NoClassDefFoundError: cx/ath/matthew/unix/UnixSocket
	at org.freedesktop.dbus.Transport.connect(Unknown Source)
	at org.freedesktop.dbus.Transport.<init>(Unknown Source)
	at org.freedesktop.dbus.DBusConnection.<init>(Unknown Source)
	at org.freedesktop.dbus.DBusConnection.getConnection(Unknown Source)
	at org.freedesktop.dbus.bin.ListDBus.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: cx.ath.matthew.unix.UnixSocket
	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:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 5 more


Version-Release number of selected component (if applicable):
dbus-java-2.7-9.fc18.noarch

How reproducible:
Always

Comment 1 Fedora End Of Life 2013-12-21 14:49:27 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Thomas Meyer 2013-12-28 14:35:05 UTC
Hi,

This problem still exists for Fedora 20.

dbus-java needs to have a RPM dependency to libmatthew-java. This is actually missing.

Besides that, the scripts in the package dbus-java

/usr/bin/ListDBus
/usr/bin/DBusViewer
/usr/bin/DBusDaemon
/usr/bin/DBusCall
/usr/bin/CreateInterface

sets the classpath of the libmatthew-java to

JAVAUNIXJARPATH=/usr/lib64/libmatthew-java

but the jar files are installed to

/usr/lib/java/

instead

The above bash scripts needs fixing.

Comment 3 Omair Majid 2014-01-03 22:17:40 UTC
(In reply to Thomas Meyer from comment #2)
> dbus-java needs to have a RPM dependency to libmatthew-java. This is
> actually missing.

On F20 here, this is not true:

# yum install dbus-java
Loaded plugins: fastestmirror, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: fedora.mirror.nexicom.net
 * updates: fedora.mirror.nexicom.net
Resolving Dependencies
--> Running transaction check
---> Package dbus-java.x86_64 0:2.7-12.fc19 will be installed
--> Processing Dependency: libmatthew-java for package: dbus-java-2.7-12.fc19.x86_64
--> Running transaction check
---> Package libmatthew-java.x86_64 0:0.8-7.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================
 Package               Arch         Version             Repository    Size
===========================================================================
Installing:
 dbus-java             x86_64       2.7-12.fc19         fedora       595 k
Installing for dependencies:
 libmatthew-java       x86_64       0.8-7.fc20          fedora        57 k

Transaction Summary
===========================================================================
Install  1 Package (+1 Dependent package)

Comment 4 Fedora Update System 2014-01-03 23:21:52 UTC
dbus-java-2.7-14.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dbus-java-2.7-14.fc20

Comment 5 Fedora Update System 2014-01-04 19:55:29 UTC
Package dbus-java-2.7-14.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dbus-java-2.7-14.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0209/dbus-java-2.7-14.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-01-21 05:56:43 UTC
dbus-java-2.7-14.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.