[jitsi-dev] Swallowed Smack exceptions


#1

Hi,

I've encountered strange issue with Exceptions thrown by Smack
PacketFilters not being printed in console output nor in log file.
Such exception will prevent other packet listeners from handling their
packets like described in[1].

If I add fake packet filter[2] that constantly throws exceptions it
will paralyze Jitsi(and no exceptions are visible). I also discovered
similiar issue with Exceptions in IQ providers, but don't have more
details.

Do we have some default exceptions handler or is there one for Smack ?
I will be looking into it, but some clue why those exceptions are
completely hidden would be helpfull.

Regards,
Pawel

[1]: http://stackoverflow.com/questions/13198840/smack-packet-listener-not-running/16358984#16358984

[2]:
connection.addPacketListener(new PacketListener()
        {
            @Override
            public void processPacket(Packet packet)
            {

            }
        },
         new PacketFilter()
         {
             @Override
             public boolean accept(Packet packet)
             {
                 throw new RuntimeException("Swallowed exception");
             }
         });