安卓集成环信群聊的时候,报出GroupAuthorizationException异常
demo中的Permission已经放到项目中去了,还是会报出GroupAuthorizationException异常。
[2017/06/19 04:09:36:452]: callback getNetState
[2017/06/19 04:09:36:456]: current host: domain: a4.easemob.com port: 443
[2017/06/19 04:09:36:460]: httprequest perform: https://a4.easemob.com:443/1161170315115172/ywyy/chatgroups?version=v3
(
{"error":"group_authorization","timestamp":1497845760017,"duration":0,"exception":"com.easemob.group.exception.GroupAuthorizationException","error_description":"token is blank!"}
网址内容)
06-19 04:09:36.614 24595-25093/com.jingjun.ywyy D/JIGUANG-JCore: [HttpHelper] status code:200
--------- beginning of crash
06-19 04:09:36.614 24595-24595/com.jingjun.ywyy E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jingjun.ywyy/com.jingjun.ywyy.ec.ECChatActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hyphenate.chat.EMGroup.getGroupId()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hyphenate.chat.EMGroup.getGroupId()' on a null object reference
[2017/06/19 04:09:36:452]: callback getNetState
[2017/06/19 04:09:36:456]: current host: domain: a4.easemob.com port: 443
[2017/06/19 04:09:36:460]: httprequest perform: https://a4.easemob.com:443/1161170315115172/ywyy/chatgroups?version=v3
(
{"error":"group_authorization","timestamp":1497845760017,"duration":0,"exception":"com.easemob.group.exception.GroupAuthorizationException","error_description":"token is blank!"}
网址内容)
06-19 04:09:36.614 24595-25093/com.jingjun.ywyy D/JIGUANG-JCore: [HttpHelper] status code:200
--------- beginning of crash
06-19 04:09:36.614 24595-24595/com.jingjun.ywyy E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jingjun.ywyy/com.jingjun.ywyy.ec.ECChatActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hyphenate.chat.EMGroup.getGroupId()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hyphenate.chat.EMGroup.getGroupId()' on a null object reference
没有找到相关结果
已邀请:
0 个回复