Missing org.freedesktop.NetworkManager signals (DBus 2.8 and Java)

Lambrecht Jürgen J.Lambrecht at TELEVIC.com
Fri Nov 14 07:26:49 PST 2014


Hi,

I am trying to receive NetworkManager signals over Dbus with a Java 
program.
But I never receive any signal.
Although, when I start in a shell:
   dbus-monitor --system 
"type='signal',sender='org.freedesktop.NetworkManager',interface='org.freedesktop.NetworkManager'"
I do receive the signals.

I am new to Dbus (and to java), and I used code I found on this list:
ref.: http://lists.freedesktop.org/archives/dbus/2013-September/015781.html
     Missing org.freedesktop.UDisks signals (DBus 2.7 and Java)
(I also used example code from Rm5248 - thanks both)

I also changed DBusInterface to Path in the signals as proposed by Matt 
in that email thread.
But no help: I receive no signal.

I compile with Eclipse using libraries dbus-2.8.jar, hexdump-0.2.jar, 
unix-0.5.jar, JRE System Library [JavaSE-1.7].
I run the program on my laptop (LMDE, Debian) with java version 
"1.7.0_21" and NetworkManager version 0.9.8.0. (both from Eclipse and 
from the command line)
I also test on an embedded PC with Debian server (stable v7.6) with java 
version "1.7.0_65" and NetworkManager 0.9.10.0. (with only root user)

The code is in attach. I generated NetworkManager.java with
   CreateInterface -y -f org.freedesktop.NetworkManager 
/org/freedesktop/NetworkManager

Any help would be really appreciated, thanks!
Kind regards,
Jürgen

-- 
Jürgen Lambrecht
R&D Associate
Mobile: +32 499 644 531
Twitter: JGRLambrecht
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dbus.java
Type: text/x-java
Size: 7827 bytes
Desc: Dbus.java
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20141114/1b8b1208/attachment.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Handler.java
Type: text/x-java
Size: 304 bytes
Desc: Handler.java
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20141114/1b8b1208/attachment-0001.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.java
Type: text/x-java
Size: 354 bytes
Desc: Main.java
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20141114/1b8b1208/attachment-0002.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NetworkManager.java
Type: text/x-java
Size: 2576 bytes
Desc: NetworkManager.java
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20141114/1b8b1208/attachment-0003.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pair.java
Type: text/x-java
Size: 332 bytes
Desc: Pair.java
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20141114/1b8b1208/attachment-0004.java>


More information about the dbus mailing list