[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dbus] type errors
From: |
Michael Albinus |
Subject: |
Re: [dbus] type errors |
Date: |
Mon, 03 Dec 2012 19:51:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Lluís <address@hidden> writes:
> Hi there,
Hi,
> I've been trying to register a dbus method which is supposed to return a list
> of
> elements with the following dbus signature: sssbxxa{sv} (method "GetEvents" in
> "org.gnome.Shell.CalendarServer").
You mean you wrote an own handler which reacts on
"org.gnome.Shell.CalendarServer.GetEvents"?
> When returning the results, a backtrace pops up with the following error for
> the "b" argument):
>
> Debugger entered--Lisp error: (wrong-type-argument D-Bus 63490176000)
> dbus-message-internal(2 :session ":1.15" 18130 ...)
> apply(dbus-message-internal 2 :session ":1.15" 18130 (...))
> dbus-method-return-internal(:session ":1.15" 18130 ...)
> apply(dbus-method-return-internal :session ":1.15" 18130 (...))
Boolean requests values `t' or `nil'. Not an integer.
> And for the "x" argument:
>
> (wrong-type-argument D-Bus 63490176000)
Per default, UINT32 is assumed. If you want to return INT64, you must
specify the type for that value. Something like ... :int64 63490176000 ...
> According to the docs in `dbus', these objects should be automatically
> translated to their dbus counterparts (at least on `dbus-call-method').
The signature of a method is not analyzed in dbus.el. That's why you must
always specify the correct type, if you want to have something different
but the default type.
See (info "(dbus)Type Conversion")
> Thanks,
> Lluis
Best regards, Michael.
- [dbus] type errors, Lluís, 2012/12/03
- Re: [dbus] type errors,
Michael Albinus <=
- Re: [dbus] type errors, Lluís, 2012/12/03
- Re: [dbus] type errors, Michael Albinus, 2012/12/03
- Re: [dbus] type errors, Michael Albinus, 2012/12/04
- Broken build with --with-x-toolkit=no?, Dmitry Antipov, 2012/12/04
- Re: Broken build with --with-x-toolkit=no?, Eli Zaretskii, 2012/12/04
- Re: Broken build with --with-x-toolkit=no?, Paul Eggert, 2012/12/04
- Re: [dbus] type errors, Lluís, 2012/12/04
- Re: [dbus] type errors, Michael Albinus, 2012/12/05
- Re: [dbus] type errors, Lluís, 2012/12/05