Missing org.freedesktop.NetworkManager signals (DBus 2.8 and Java)
J.Lambrecht at TELEVIC.com
Mon Nov 17 08:25:14 PST 2014
On 11/14/2014 04:26 PM, Lambrecht Jürgen wrote:
> I am trying to receive NetworkManager signals over Dbus with a Java
> But I never receive any signal.
> Although, when I start in a shell:
> dbus-monitor --system
> I do receive the signals.
Maybe my program has no access rights? (although it it runs as root)
I read that "Access to methods and interfaces is governed through XML
files in |/etc/dbus-1/system.d| ".
I also found posts about people having problems running nm-applet, and
the solution was to modify
/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf (change "deny"
But that did not help.
Could access rights (permissions, ..) be my problem?
> 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
> Any help would be really appreciated, thanks!
> Kind regards,
Mobile: +32 499 644 531
Tel: +32 (0)51 303045 Fax: +32 (0)51 310670
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk
More information about the dbus