coder2000 / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

problem with JabberClient.GetRoster after joined a conference #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all,
I'm having a problem when receiving the answer from my server if calling
JabberClient.GetRoster after having created and joined a conference with
Room.DefaultConfig = true.
I'm using openfire 3.4.3 as jabber server.
First i had a "bad jid" exception in ConferenceManager.m_stream_OnProtocol
on JID from = (JID)rp.GetAttribute("from");. I solved temporarily this
problem by adding this line before the previous:  
if (rp.GetAttribute("from") == "")return;
Now the code seem to work but sometime I get again an exception
(System.ArgumentException {"An item with the same key has already been
added."}) in AsynchElementStream.EndTag but i couldn't debug deeply.
I have the same problem if i leave the conference before doing GetRoster.
No problem instead if doing GetRoster without having never created or
joined a conference.

Original issue reported on code.google.com by chiod...@gmail.com on 4 Feb 2008 at 9:57

GoogleCodeExporter commented 8 years ago
I've made a mistake reporting this error. the "bad jid" exception is thrown in
Room.m_stream_OnProtocol and not in ConferenceManager (I wrong because of the 
file name)
Also seems that the second exception i reported was generated by my 
implementation of
one of the evente (maybe OnRosterIntem).
Still remain the problem about the first exception.

Original comment by chiod...@gmail.com on 4 Feb 2008 at 10:55

GoogleCodeExporter commented 8 years ago
The issue was the ConferenceManager wasn't dealing with inbound protocol that 
had no
from address, like iq:roster.  Should be fixed in head.

Original comment by hil...@gmail.com on 5 Feb 2008 at 9:31