powered by Jive Software

XMPPError: jid-malformed - modify

openfire

#1

Hi , i am using smack with open fire for chat , and i am trying to register a user with account manager but i am getting below error:

i am using this code :

if(connection != null && connection.isConnected()){
Log.e("=AccountManager= ",“AccountManager”);

                // Registering the user
                AccountManager accountManager = AccountManager.getInstance(connection);
                Log.e("=supportsAccountCreation= ","="+accountManager.supportsAccountCreation());
                Log.e("=getAccountInstructions= ","="+accountManager.getAccountInstructions());
                Map<String, String> attributes = new HashMap<>();
                attributes.put("name", "kanta");
                attributes.put("email", "kanta@signitysolutions.in");
                    if (accountManager.supportsAccountCreation()) {
                        accountManager.sensitiveOperationOverInsecureConnection(true);
                        accountManager.createAccount(loginUser, context.getString(R.string.user1_password), attributes);
                    }

                // The account has been created, so we can now login
                //connection.login(loginUser, passwordUser);
            }

and i am getting below error in console:
/SMACK: SENT (0):
09-30 00:44:41.985 24325-24429/com.signity.spota D/SMACK: RECV (0):
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError: jid-malformed - modify
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:232)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:213)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smackx.iqregister.AccountManager.getRegistrationInfo(AccountManager.java:332)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smackx.iqregister.AccountManager.supportsAccountCreation(AccountManager.java:144)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at com.signity.spota.xmpp.SpotaXMPP.login(SpotaXMPP.java:341)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at com.signity.spota.xmpp.SpotaXMPP$XMPPConnectionListener.connected(SpotaXMPP.java:466)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smack.AbstractXMPPConnection.callConnectionConnectedListener(AbstractXMPPConnection.java:1153)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:841)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:360)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at com.signity.spota.xmpp.SpotaXMPP$2.doInBackground(SpotaXMPP.java:211)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at com.signity.spota.xmpp.SpotaXMPP$2.doInBackground(SpotaXMPP.java:194)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:292)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
09-30 00:44:41.989 24325-24351/com.signity.spota W/System.err: at java.lang.Thread.run(Thread.java:818)


New accounts from admin only and smack
#2

hello,Is your problem solved? I am troubled by this problem.