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:
-
my custom message arrives
-
it gets parsed by Provider class that returns a (proper) object of a new type
-
now, returned object should be picked up by Listener. It is not
-
I’‘m sending (by hand, using Smack’'s debug console) an empty message
-
Smack parses both of them (original custom packet is handled OK, bogus is returned an error).
Now, can anyone explain why it is happening?
thanks,