[JDEV] Probelms with presence

emma.willis at ntlworld.com emma.willis at ntlworld.com
Thu Jul 25 10:16:45 CDT 2002


Hi - I have been reading the code that someone kindly suggested to help me with presence subscription but I still don't understand whats wrong.  Maybe I am doing something wrong or maybe there is a bug... I am testing this on a windows server and I have found several things not to work (e.g. offline messages not being sent whena  user logs in).

Can anyone tell me if it is me or the server...

I am using Jabberbeans but printing out what the java code generates and sends...This is what one person sends to the other...

<presence to="yourjumbly at localhost" type="subscribe"></presence> 

 but the recipient (yourjumbly at localhost) does not actually receive a packet at all.....

the sender's XML spool document changes to ...

- <xdb>
- <query xmlns="jabber:iq:roster" xdbns="jabber:iq:roster">
  <item jid="yourjumbly at localhost" subscription="none" ask="subscribe" /> 
  </query>
  </xdb>


and the recipient's changes to ...


- <xdb>
- <query xmlns="jabber:iq:roster" xdbns="jabber:iq:roster">
  <item jid="emmawillis at localhost" subscription="none" subscribe="" hidden="" /> 
  </query>
  </xdb>


..so the packet definitely gets as far as the server....

Is the recipient supposed to recieve a packet?  Is this normal or shall I give up and try it on a linux server?


Hope for some more good advice, yours Emma






More information about the JDev mailing list