java.lang.IllegalArgumentException: Nickname must not be null or blank

Hello Team ,

From today i am getting below exception while creatig gorup .

my input json is below:
/////////////////////////////////////////////////////////
{
“createdAt”: 0,
“description”: “Vvhjj”,
“guid”: “EE83FB6D-9520-EA11-BB6B-000D3AF00B4B”,
“hasJoined”: false,
“joinedAt”: -1,
“metadata”: {
“nameValuePairs”: {
“PoNumber”: “EE83FB6D-9520-EA11-BB6B-000D3AF00B4B”,
“customerGuiId”: “57A4892E-03F0-E911-BB37-000D3AF00B4B”
}
},
“name”: “Pos25”,
“type”: “public”,
“updatedAt”: 0
}

///////////////

below is exception

2019-12-17 11:48:11.193 12406-12406/com.connectrix.customer E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.connectrix.customer, PID: 12406
java.lang.IllegalArgumentException: Nickname must not be null or blank.
at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:263)
at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:277)
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:495)
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:430)
at com.cometchat.pro.core.XMPPConnectionService.joinGroup(XMPPConnectionService.java:405)
at com.cometchat.pro.core.CometChat$24$2.run(CometChat.java:1060)
at android.os.Handler.handleCallback(Handler.java:869)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:206)
at android.app.ActivityThread.main(ActivityThread.java:6749)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)

Please look into this

Thanks and Regards

Input json in more details

Hello @Pankaj_Android,
Can you please share the code snippet you are using for creating a group…?

Hello Adiya,

this issue was coming due to SSL error.
I log out from applicaiton and then login again. then SSL error started coming.

CometChat.createGroup(group, object : CometChat.CallbackListener() {
override fun onSuccess(p0: Group?) {

                if (p0 != null) {
                    groupListMutable.put(p0.guid, p0)
                    groupList.value = groupListMutable
                }

                onGroupCreated.onGroupCreated(context, p0)

            }

            override fun onError(p0: CometChatException?) {
                onGroupCreated.onErrorGroupCreation(context, p0)
            }

        })

Hi @Pankaj_Android,

Are you still facing the issues due to SSL?

The android SDK version 2.0.2 contains changes and optimisations to the login flow.

Please upgrade to v2.0.2 and it should resolve the issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.