powered by Jive Software

Packet getiing stuck in a queue

Here’'s my problem:

I’'ve created a custom packet type (extension of ). I also have a Provider class for it (for parsing XML code of the message), as well as Listener with a proper PacketTypeFilter.

Some times, however, my messages get stuck in the packet queue. Here’'s how the timeline of events look like:

  1. my custom message arrives

  2. it gets parsed by Provider class that returns a (proper) object of a new type

  3. now, returned object should be picked up by Listener. It is not

  4. I’‘m sending (by hand, using Smack’'s debug console) an empty message

  5. Smack parses both of them (original custom packet is handled OK, bogus is returned an error).

Now, can anyone explain why it is happening?