<div>Hi, </div> <div> </div> <div>I am using smack 2.1.0 Client API to connect to jabber.org (ejabberd).</div> <div> </div> <div>Below is the function to delete the user:</div> <div> </div> <div>public void deleteUser()<BR>{<BR> XMPPConnection.DEBUG_ENABLED = true;</div> <div> XMPPConnection l_xmmpConnection = null;</div> <div> </div> <div> try<BR> {</div> <div> PrintLog("Delete user.");<BR><BR> l_xmmpConnection = new XMPPConnection("noneworkstation", 5222);<BR> l_xmmpConnection.addPacketListener(this, new PacketTypeFilter(Message.class));</div> <div> l_xmmpConnection.login("tancy", "tancy");</div> <div> AccountManager l_accountManager = l_xmmpConnection.getAccountManager();<BR> l_accountManager.deleteAccount();</div>
<div> </div> <div> PrintLog("User is deleted.");</div> <div> }<BR> catch (Exception ex)<BR> {<BR> PrintLog("Exception in deleteUser: " + ex.toString());<BR> }</div> <div> </div> <div> l_xmmpConnection.close();<BR>}</div> <div> </div> <div> </div> <div>After I ran, I got: <BR><BR>E:\Jabber\API\Smack 2.1.0\code>java -classpath ../smack.jar;../smackx.jar;./ Test <BR>[01:23:39 AM] Delete user. <BR>[01:23:53 AM] Exception in deleteUser: No response from server.: <BR><BR></div> <div>I tried to run above function several times. Sometimes with above exception, the</div> <div>user is deleted.</div> <div> </div> <div>How come ? Is it a bug in ejabberd or I did wrong in the code ?</div> <div> </div> <div>Your help is really appreciated.</div> <div> </div> <div>Thanks !</div> <div> </div> <div>Tan</div><p>
                <hr size=1>Yahoo! Mail<br>
Bring photos to life! <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com">New PhotoMail </a> makes sharing a breeze.