注册

关于集成后的APP网络连接问题

同一台机子,DEMO连接服务器很正常,但是我的集成APP就很难连上,前2天基本上就下午连得上,早上和晚上都是连不上.
TAG打印check connection后就显示network unconnected.
跟环信的服务器有关?
已邀请:
> forum.php?mod=redirect&goto=findpost&pid=5279&ptid=3099
贴log日志


06-11 10:42:51.921: D/com.easemob.chat.core.n(15487): try to retrieve token : http://182.92.228.160:80/lml83420063/firewifibusiness/token
06-11 10:42:51.921: D/HttpClientManager(15487): try send request, request url: http://182.92.228.160:80/lml83420063/firewifibusiness/token with number: 0
06-11 10:42:52.187: D/(15487): retrieve token time : 00:00:266
06-11 10:42:52.187: D/Session(15487): EMAuthenticationException:com.easemob.exceptions.EMAuthenticationException: invalid user or password!
06-11 10:42:52.320: D/EMChatManager(15487): do stop service
06-11 10:42:52.328: D/main(15487): 登陆聊天服务器失败!
------------------------------这是登录后显示的-------------------------------
06-11 10:48:46.804: D/SensorManager(15487): unregisterListener:: Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$K**wiFmfulTrklfufiRvht@,)b*c.+(
06-11 10:48:46.804: D/Sensors(15487): Remain listener = Sending .. normal delay 200ms
06-11 10:48:46.812: I/Sensors(15487): sendDelay --- 200000000
06-11 10:48:46.812: D/SensorManager(15487): JNI - sendDelay
06-11 10:48:46.812: D/SensorManager(15487): ===== BOSCH_BMC150 is NOT defined
06-11 10:48:46.812: I/SensorManager(15487): Set normal delay = true
06-11 10:48:47.789: D/Session(15487): check connection...
06-11 10:48:47.789: D/Session(15487): network unconnected...------------------------------这是我发消息的时候显示的-----------------------
补充下,登录的时候没问题,就在我发消息或添加好友的时候会连不上
> forum.php?mod=redirect&goto=findpost&pid=5283&ptid=3099
06-11 10:42:51.921: D/com.easemob.chat.core.n(15487): try to retrieve token : http://182.92.228.16 ...


换个网络试试
> forum.php?mod=redirect&goto=findpost&pid=5284&ptid=3099
换个网络试试


一样的结果额..

lizg - ……

06-11 10:42:52.187: D/Session(15487): EMAuthenticationException:com.easemob.exceptions.EMAuthenticationException: invalid user or password!
----这不是说用户名密码错误么
> forum.php?mod=redirect&goto=findpost&pid=5288&ptid=3099
一样的结果额..


发消息之前登录了没
> forum.php?mod=redirect&goto=findpost&pid=5308&ptid=3099
发消息之前登录了没


06-11 14:47:08.593: D/sxmppcon(30504): trying to close the socket : Socket
06-11 14:47:08.601: D/sxmppcon(30504): (1109626768) socket was closed
06-11 14:47:08.601: I/sxmppcon(30504): shutdown was called
06-11 14:47:08.601: W/**.err(30504): com.easemob.exceptions.EMAuthenticationException: SASL authentication failed using mechanism PLAIN
06-11 14:47:08.601: W/**.err(30504): at com.easemob.chat.core.EMConnectionManager.login(Unknown Source)
06-11 14:47:08.601: W/**.err(30504): at com.easemob.chat.core.EMConnectionManager.connectSync(Unknown Source)
06-11 14:47:08.601: W/**.err(30504): at com.easemob.chat.EMSessionManager.loginSync(Unknown Source)
06-11 14:47:08.601: W/**.err(30504): at com.easemob.chat.EMSessionManager.access$0(Unknown Source)
06-11 14:47:08.601: W/**.err(30504): at com.easemob.chat.EMSessionManager$1.run(Unknown Source)


登录的时候出现这个..你看前2句话..为什么socket was closed
> forum.php?mod=redirect&goto=findpost&pid=5327&ptid=3099
06-11 14:47:08.593: D/sxmppcon(30504): trying to close the socket : Socket[address=/182.92.20.34,p ...


log信息不全,也看不出来,但是网络有很大影响

要回复问题请先登录注册