XMPPSocketConnection.changePassword() failed

I got this error when using XMPPSocketConnection.changePassword() function:

test111@localhost.localdomain

testpassword111…

Can someone explain to me what’s wrong with this jid-malformed error?

Many thanks in advance.

I found the error which was in XMPPConnection which has to do with username as show below:

public****function changePassword( newPassword:String ):
{

void

var passwdIQ:IQ = new IQ( new JID(server), IQ.SET_TYPE, XMPPStanza.generateID(“pswd_change_”), “changePassword_result”, this, null

);

var ext:RegisterExtension = new

RegisterExtension(passwdIQ.getNode());

*//ext.username = jid.toBareJID(); *<== error - should be replaced with the line below.

ext.username = username;

ext.password = newPassword;

passwdIQ.addExtension(ext);

send( passwdIQ );

}

Thanx