What is your xmpp domain? "localhost"? In-Band registration is not available for Vysper. You need to have a running session for a user which is an admin. The admin can create user accounts.
Bernd On Thu, Feb 27, 2014 at 9:57 AM, snowingximen <[email protected]> wrote: > hi team, > > I met the same issu - Smack API cann't register a user. > > The codes like below, and based org.apache.vysper.smack.BasicClient: > > ConnectionConfiguration connectionConfiguration = new > ConnectionConfiguration("localhost"); > // ConnectionConfiguration connectionConfiguration = > new ConnectionConfiguration("xmpp.eu"); > connectionConfiguration.setCompressionEnabled(false); > connectionConfiguration.setSelfSignedCertificateEnabled(true); > > connectionConfiguration.setExpiredCertificatesCheckEnabled(false); > connectionConfiguration.setDebuggerEnabled(true); > connectionConfiguration.setSASLAuthenticationEnabled(true); > > connectionConfiguration.setSecurityMode(ConnectionConfiguration.SecurityMode.required); > XMPPConnection.DEBUG_ENABLED = true; > XMPPConnection connection = new > XMPPConnection(connectionConfiguration); > connection.connect(); > > SASLAuthentication saslAuthentication = > connection.getSASLAuthentication(); > // saslAuthentication.authenticateAnonymously(); > // > saslAuthentication.authenticate("[email protected]", "password1", "test"); > > // if (!saslAuthentication.isAuthenticated()) return; > > connection.getAccountManager().createAccount("snowing@sun-pc", > "snowing"); > > > > The client get an error: > <error > xmlns="urn:ietf:params:xml:ns:xmpp-streams"><not-authorized></not-authorized><text > xml:lang="en_US">could not process incoming stanza</text><iq > xmlns="jabber:client" to="sun-pc" id="W5YPF-0" type="get"><query > xmlns="jabber:iq:register"></query></iq></error> > > > > Could you help me? > > Regards, > Klinsman > > > > -- > View this message in context: > http://apache-mina.10907.n7.nabble.com/Question-Regarding-Apache-Vysper-tp35818p41411.html > Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
