[ejabberd] Shared_roster, mod_vcard_ldap and nicknames from others domains.

Badlop badlop at gmail.com
Mon Oct 10 13:58:18 MSD 2011


2011/10/10 Thomas Martin <tmartincpp at gmail.com>:
> I tried to launch: "ejabberdctl get_roster user1 domain1".
> I got the following errors:
>
> =INFO REPORT==== 10-Oct-2011::11:04:57 ===
> D(<5354.10913.0>:ejabberd_commands:314) : Executing command
> mod_admin_extra:get_roster with Args=["user1",
>
> "domain1"]
> ** at node ejabberd at jabber1.dmz.lille.it-finance.com **
>
> =ERROR REPORT==== 10-Oct-2011::11:04:57 ===
> E(<5354.10913.0>:mod_shared_roster:191) : Error error found when trying
> to get the vCard of user1 at domain2 in mod_vcard_ldap:
>  function_clause
> ** at node ejabberd at jabber1.domain1 **

Oh, the error report isn't informative enough, and I don't have
mod_vcard_ldap working for tring myself.

Apply this patch to get more details about the error, maybe they point
to the source of the problem:
--- a/src/mod_shared_roster.erl
+++ b/src/mod_shared_roster.erl
@@ -194,7 +194,8 @@ get_rosteritem_name([ModVcard], U, S) ->
     try get_rosteritem_name_vcard(IQ_Vcard#iq.sub_el)
     catch E1:E2 ->
            ?ERROR_MSG("Error ~p found when trying to get the vCard of ~s@~s "
-                      "in ~p:~n ~p", [E1, U, S, ModVcard, E2]),
+                      "in ~p: ~p~nStacktrace: ~p",
+                      [E1, U, S, ModVcard, E2, erlang:get_stacktrace()]),
            ""
     end.



---
Badlop
ProcessOne


More information about the ejabberd mailing list