Problems with D-Bus in Java

Matthew Johnson dbus at matthew.ath.cx
Thu May 6 03:19:42 PDT 2010


On Wed May 05 17:02, Íñigo González wrote:
> But in java I am not able to access to that object. This is the code:
> 
> DBusConnection conn =
> DBusConnection.getConnection(DBusConnection.SESSION);
> if (interf.isRemote())
> 	conn.callMethodAsync(interf, "deleteAgent");

You're missing some code here, for example, how you get interf and what type it
is. What happens if you call interf.deleteAgent() ?

> When it tries to call the deleteAgent method it returns this error: 
> 
> org.freedesktop.dbus.exceptions.DBusExecutionException:
> $Proxy2.deleteAgent()
> 	at org.freedesktop.dbus.AbstractConnection.callMethodAsync(Unknown
> Source)

Is that really the only error? There should normally be some sort of message
with the error.

Matt
-- 
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100506/c603cb24/attachment.pgp>


More information about the dbus mailing list