powered by Jive Software

Problem with user creation

hi

after connecting to jive messenger sucessfully.now i’'m in the process of creating user and getting buddy list for them.

i’'m using the followinig code to create user

import org.jivesoftware.smack.*;

import java.util.*;

public class acct {

public static void main(String[] args) {

XMPPConnection.DEBUG_ENABLED = true;

try {

XMPPConnection connection = new XMPPConnection(“localhost”, 5222);

connection.login(“admin”,“XXX”);

System.out.println(“Login Success !!!” );

System.out.println(“Trying to create acct…” );

AccountManager newAccount = new AccountManager(connection);

newAccount.createAccount(“abc”,“ddd”);

System.out.println(“created acct…” );

} catch (Exception e) {

System.out.println(“Failed” +e);

}

}

}

but i get the following exception

C:\smack\classes>java -cp C:\smack\smack.jar;C:\smack\smackx.jar; acct

Sucess !!!

Trying to create acct…

Failedorg.jivesoftware.smack.XMPPException: Server does not support account crea

tion.

I’‘ve seen the settings in my jive software and i’'ve enabled the option of Inband Account Registration.

so that Users can automatically create new accounts.

where do u think the problem is ???

one more thing i wanna know is that when i’‘m creating an acct do i need to follow the convention of xxx@abc as username.if so wat should i use as i’'m writing a client for jive messenger.

Sara

Make sure the server you’‘re using is configured to allow account creation. It’‘s simply telling you that it isn’'t at the moment.

Regards,

Matt

hey Matt

Thanx i’'ve fixed it.currently busy in getting buddy list…lets see what happens.

Sara