[java] dbus disconnecting / threaded use of dbus

Colby M White colby.white at utexas.edu
Tue Sep 4 10:03:14 PDT 2012

My objectpaths seem valid. They are alphanumeric strings. In my test
example, I'm just using words. getId() returns something like "one" or
"two" every time. Here is that line of logging done again with the path

AbstractConnection$_sender.run()] Got message: DataChanged(0,365) {
Path=>/seventeen, Interface=>dbus.topics.Topic, Member=>DataChanged,
Signature=>a{sv} } { {Name=[seventeen],// the rest of the map//} }

Colby M. White

On Tue, Sep 4, 2012 at 11:51 AM, Will Thompson <
will.thompson at collabora.co.uk> wrote:

> On 04/09/12 12:40, Colby M White wrote:
>> I am attempting to use the java bindings for dbus and am encountering a
>> disconnecting problem. When I send a signal, the connection is
>> disconnected with out given me much of a reason as to why. Part of the
>> issue is it doesn't happen all the time, just when it feels like it.
>> That's making it hard to reproduce.
>> So my main question: What are the possible reasons that a connection
>> would decide to disconnect (other then hitting the
>> DBusConnection.disconnect() method, which I confirmed is never being
>> called in my code)? If I knew what could cause a disconnection, then it
>> would narrow my search.
> Sending malformed messages, such as with a path which doesn't obey <
> http://dbus.freedesktop.org/**doc/dbus-specification.html#**
> message-protocol-marshaling-**object-path<http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-marshaling-object-path>>
> or a string which isn't valid UTF-8.
>                   Topic.DataChanged signal=new
>> Topic.DataChanged("/"+getId(), /*some other stuff*/);
>  [org.freedesktop.dbus.**AbstractConnection$_sender.**run()] Got message:
>> DataChanged(0,7) { Path=>..., Interface=>dbus.topics.Topic,
> You've cut out what the path actually is. What does getId() return? Does
> prefixing it with '/' always give you a valid object path?
> --
> Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120904/6634b723/attachment.html>

More information about the dbus mailing list