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
intact:<br>
<br>[org.freedesktop.dbus.<div id=":xn">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//} }</div><br clear="all"><br>
-- <br>
Colby M. White<br><div></div><div></div><div></div><br>
<br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 11:51 AM, Will Thompson <span dir="ltr"><<a href="mailto:will.thompson@collabora.co.uk" target="_blank">will.thompson@collabora.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 04/09/12 12:40, Colby M White wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am attempting to use the java bindings for dbus and am encountering a<br>
disconnecting problem. When I send a signal, the connection is<br>
disconnected with out given me much of a reason as to why. Part of the<br>
issue is it doesn't happen all the time, just when it feels like it.<br>
That's making it hard to reproduce.<br>
<br>
So my main question: What are the possible reasons that a connection<br>
would decide to disconnect (other then hitting the<br>
DBusConnection.disconnect() method, which I confirmed is never being<br>
called in my code)? If I knew what could cause a disconnection, then it<br>
would narrow my search.<br>
</blockquote>
<br></div>
Sending malformed messages, such as with a path which doesn't obey <<a href="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-marshaling-object-path" target="_blank">http://dbus.freedesktop.org/<u></u>doc/dbus-specification.html#<u></u>message-protocol-marshaling-<u></u>object-path</a>> or a string which isn't valid UTF-8.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Topic.DataChanged signal=new<br>
Topic.DataChanged("/"+getId(), /*some other stuff*/);<br>
</blockquote>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[org.freedesktop.dbus.<u></u>AbstractConnection$_sender.<u></u>run()] Got message:<br>
DataChanged(0,7) { Path=>..., Interface=>dbus.topics.Topic,<br>
</blockquote>
<br></div>
You've cut out what the path actually is. What does getId() return? Does prefixing it with '/' always give you a valid object path?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Will<br>
</font></span></blockquote></div><br>