SMACK Account Creation

Hey all,

I’ve been having a lot of trouble with account creation and various errors. My current relevant code is:

try {
               XMPPConnection tmp = new XMPPConnection("JabberServerNameHere");
               tmp.connect();
               tmp.getAccountManager().createAccount("asdf", "asdf");
               tmp.disconnect();
          } catch (XMPPException e) {
               System.out.println(e);
          }

which outputs “conflict(409)” as the error.

a few things I have checked / figured out.

*The server does support account creation

*This account does not yet exist

What’s the standard procedure for account creation using smack?

Any help would be great. Thanks.

Hello,

Most likely that error (409) is a result of the account “asdf” already existing on the server.

Hope that helps,

Ryan

Yup, figured that out, apparently asdf isn’t as “random” as I had thought… thanks