powered by Jive Software

How do I handle a stream:error (conflict)?

How do I handle a stream:error (conflict)?

I have written a jabber messenger client and I am having a problem with a stream:error(conflict). I have the Resource Policy in Wild Fire set up to close any duplicate resource’'s connection, but when it does it sends a stream:error(conflict) back to the messenger that I developed. I want to catch that error some how and tell it to close my messenger when this happens. Right now my messenger just sits there open with no connection. I did a System.out.print(exception.getClass()); on the “error” and it printed out that the “error” was of the XMPPException type. I tried to catch this exception in a try catch block but the catch never executes. What should I do? How should this be handled?

Please Help Me.