Deleting jabber account

Hi, i can’'t delete a jabber account with deleteAccount() cause it send :

<iq type=’‘set’’ to=’‘jabber.org’’>

<query xmlns=’‘jabber:iq:register’’>

(l:237 accountManager.class)

attributes.put(“remove”, “”);

for deleting jabber account the message should be :

<iq type=’‘set’’ to=’‘jabber.org’’>

<query xmlns=’‘jabber:iq:register’’>

(http://www.jabber.org/user/userfaq.html#id2781144)

Could someone know how modify the deleteAccount() function for do it or how send a packet with this ?

I’‘m don’'t know how just put “” in a packet.

I’‘m still a newbie but i thing i’'m not wrong.

Help be Welcome :smiley:

maxuan,

and have the exact same meaning in XML. So, I’‘d be pretty surprised if that was the cause of the problem. Can you try sending raw XML to your server to verify? If that is the issue, you should file a bug against the XMPP server you’‘re using since it’'s not correctly parsing XML.

What is the message you get back from the server when you try to use Smack to delete an account?

Regards,

Matt

oh, i’'m feel so stupid…

thanks a lot for your answer matt, it helps me to find the solution :

####################################################

With Winjab the jabber client i send :

SENT: <iq type=‘‘set’’ to=‘‘xxx.com’’>

<query xmlns=‘‘jabber:iq:register’’>

i receive :

RECV: <iq type=‘‘result’’ to=‘‘xxx@xoum.com/Winjab’’ from=‘‘xoum.com’’/>

i reboot the server and the account has been deleted.

( i don’‘t understand why i have to reboot, i’'ve put 0 in the xdb_file section of my jabber server configuration.

it’'s another problem but a solution was so good

####################################################

with the deleteAccount() function i have :

debug xml client :

debug xml server :

<x xmlns=‘‘jabber:x:delay’’ from=‘‘aaa@xxx.com/Winjab’’ stamp=‘‘20030415T16:03:42’’/>

debug interpreted:

503Service Unavailable

debug java:

(503) Service Unavailable – org.jivesoftware.smack.XMPPException

at org.jivesoftware.smack.AccountManager.deleteAccount(AccountManager.java:248)

#####################################################


The string “to=‘‘xxx.com’’” is not send by the client.

I added “reg.setTo(“xxx.com”);” at l 238 of the AccountManager class, in the deleteAccount() function.

and it works now

#######################################################

I post this cause it could help another newbie as me

If someone could tell me why i have to reboot my jabber server for the account be deleting althought i put 0 in the xdb_file section of my jabber server configuration file but i’‘m don’'t think that this forum is the place for.

Thanks for Your work !

maxuan,

Thanks for the bug fix. I’‘ll make sure the “to” field gets set. As for the server problems you’'re seeing – all I can suggest is trying out another server. Perhaps the excellent one from us – http://www.jivesoftware.com/products/messenger ?

Regards,

Matt

Actually, it looks like the latest version of the code already sets the “to” field. You may want to try out the latest daily build of Smack to see if it fixes the problem for you:

http://www.jivesoftware.com/xmpp/smack/dailybuilds.jsp

Regards,

Matt

I think you are using jabberd server! If so that’'s no a bug from the server!

The server only finish removing a account when he is restarted.

It’'s in the specification of jabberd.

I think the server was implemented with this routine procedure because it’'s easier to remove a file and the server never knows about it then remove the references of the file from is internal database!

I have not seen this releases

You could be sure that now i will use the last version !!!

I would like try jive messenger server but the licence is not in the way of my project

I think i will do a personal evaluation but i will not be able to use the server with my users.

You ''re right Wizbang, i use jabberd server but you could delete an account and not re-start the server.

Mail-me if you want more informations.

Very good reactif forum

You ''re right Wizbang, i use jabberd server but you could

delete an account and not re-start the server.

Mail-me if you want more informations.

I think that information would be more usefull if you share it with everybody!

It’'s not only you and I who are using jabberd server and this could help more people!