Help with DBusCall

Matthew Johnson dbus at
Sun Feb 24 15:23:04 PST 2008

On Sun Feb 24 18:56, mohammad rizk wrote:
> I am new to dbus, I downloaded the latest release of dbus-java and tried to
> use the DBusCall function to call a method. if the method does not take
> arguments, I do not face any problem; however i face problems when the
> method takes arguments. I do not know if i am using it in the wrong way or
> there is a bug in the code.
> I am using it in the following way:
> DBusCall org.freedesktop.DBus.Examples.Echo
> /org/freedesktop/DBus/Examples/Echo org.freedesktop.DBus.EchoDemo Hello
> where Hello is the method name, when I append [world] to the above command
> where "world" is a string argument , it starts giving errors like

You need to give it the type signature of the arguments before the
arguments. For example, with a string argument it would be:

   $ DBusCall org.freedesktop.DBus / org.freedesktop.DBus GetNameOwner s ":1.0"


D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : 

More information about the dbus mailing list