From bd34a836b1e1dba10d23d8e32d851d44182077f3 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sun, 11 Aug 2024 13:47:47 +0300 Subject: [PATCH] ConferenceRoomBrowser: ignore not_implemented and service_unavailable error Signed-off-by: Sergey Ponomarev --- .../spark/ui/conferences/ConferenceRoomBrowser.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomBrowser.java b/core/src/main/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomBrowser.java index 022ff9307..2d841bbc9 100644 --- a/core/src/main/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomBrowser.java +++ b/core/src/main/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomBrowser.java @@ -50,6 +50,7 @@ import org.jivesoftware.resource.SparkRes; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException; +import org.jivesoftware.smack.packet.StanzaError; import org.jivesoftware.smackx.muc.MultiUserChatManager; import org.jivesoftware.smackx.xdata.form.FillableForm; import org.jivesoftware.smackx.bookmarks.BookmarkedConference; @@ -549,8 +550,13 @@ public void run() { Log.error("Error setting up GroupChatTable", e); } } + } catch (XMPPException.XMPPErrorException e) { + StanzaError.Condition condition = e.getStanzaError().getCondition(); + if (condition != StanzaError.Condition.feature_not_implemented && condition != StanzaError.Condition.service_unavailable) { + Log.error("Unable to retrieve list of rooms from " + serviceName, e); + } } catch (Exception e) { - Log.error("Unable to retrieve list of rooms.", e); + Log.error("Unable to retrieve list of rooms from " + serviceName, e); } stopLoadingImg(); }