ejabberd - Comments for "Having trouble with make_jid" https://www.ejabberd.im/node/3249 en well.. that seems to have fixed it https://www.ejabberd.im/node/3249#comment-53681 <p>I ran stringprep_sup:start_link(). as the first command in the erl emulator, then ran my test code and I was able to make the jid, using nodeprep, etc... The ejabberd server is running. The only difference is I am running my test code, which calls in to the erlang code that is trying to use make_jid via the erl emulator. Must be something in the way this runs in that environment that is for some reason not getting the stringprep_sup started.</p> <p>Thank you for the help.</p> <p>sarah</p> Thu, 23 Oct 2008 22:21:18 +0000 sjjelinek comment 53681 at https://www.ejabberd.im Hi, is ejabberd running or https://www.ejabberd.im/node/3249#comment-53680 <p>Hi,<br /> is ejabberd running or you are running your code standalone?<br /> If running standalone, you would need to start the stringprep process to being able to use nodeprep/1. </p> <p>Try starting the supervisor:<br /> stringprep_sup:start_link(),</p> Thu, 23 Oct 2008 20:39:27 +0000 ppolv comment 53680 at https://www.ejabberd.im Having trouble with make_jid-more data https://www.ejabberd.im/node/3249#comment-53679 <p>So, I tried to just populate my own jid record with:</p> <div class="codeblock"><code>Resource = &quot;facebookdca&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case jlib:nodeprep(User) of<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LUser -&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case jlib:nameprep(Server) of<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LServer -&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; luser = LUser,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lserver = LServer,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lresource = LResource}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end,</code></div> <p>And, I get the same error:<br /> sjelinek@re.clynetic)2&gt;<br /> =ERROR REPORT==== 23-Oct-2008::19:01:49 ===<br /> Error in process &lt;0.55.0&gt; on node 'sjelinek@re.clynetic' with exit value: {badarg,[{erlang,port_control,[stringprep_port,2,"sarah_jelinek"]},{stringprep,control,2},{jlib,nodeprep,1},{facebook_dca,get_data,7},{lists,foreach,2}]}</p> <p>In googling this error it looks like the a possible cause is the port not being started? I cannot imagine it really is a badarg with "sarah_jelinek". Any ideas? Is there something I need to specifically start before I try to do this? I am able to write xml data to the ejabberd server so I know the server is operating. </p> <p>thanks,<br /> sarah</p> Thu, 23 Oct 2008 19:40:53 +0000 sjjelinek comment 53679 at https://www.ejabberd.im