<div>Hi, </div>  <div>&nbsp;</div>  <div>I am using smack 2.1.0 Client API to connect to jabber.org (ejabberd).</div>  <div>&nbsp;</div>  <div>Below is the function to delete the user:</div>  <div>&nbsp;</div>  <div>public void deleteUser()<BR>{<BR>&nbsp;&nbsp; XMPPConnection.DEBUG_ENABLED = true;</div>  <div>&nbsp;&nbsp; XMPPConnection l_xmmpConnection = null;</div>  <div>&nbsp;&nbsp; </div>  <div>&nbsp;&nbsp; try<BR>&nbsp;&nbsp; {</div>  <div>&nbsp;&nbsp; &nbsp;&nbsp; PrintLog("Delete user.");<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_xmmpConnection = new XMPPConnection("noneworkstation", 5222);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_xmmpConnection.addPacketListener(this, new PacketTypeFilter(Message.class));</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_xmmpConnection.login("tancy", "tancy");</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AccountManager l_accountManager = l_xmmpConnection.getAccountManager();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_accountManager.deleteAccount();</div> 
 <div>&nbsp;&nbsp; </div>  <div>&nbsp;&nbsp; &nbsp;&nbsp; PrintLog("User is deleted.");</div>  <div>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; catch (Exception ex)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PrintLog("Exception in deleteUser: " + ex.toString());<BR>&nbsp;&nbsp; }</div>  <div>&nbsp;</div>  <div>&nbsp; l_xmmpConnection.close();<BR>}</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>After I ran, I got: <BR><BR>E:\Jabber\API\Smack 2.1.0\code&gt;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>&nbsp;</div>  <div>How come ? Is it a bug in ejabberd or I did wrong in the code ?</div>  <div>&nbsp;</div>  <div>Your help is really appreciated.</div>  <div>&nbsp;</div>  <div>Thanks !</div>  <div>&nbsp;</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.